From a5cba4e222f4ef89518bebea9b0ac447730fcdb1 Mon Sep 17 00:00:00 2001 From: Steve Tousignant Date: Wed, 3 Sep 2008 19:29:56 +0000 Subject: Fix for ticket #586, seem to happen only with recent version of debsums git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4901 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/APT.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py index bf0394249..871cc7830 100644 --- a/src/lib/Client/Tools/APT.py +++ b/src/lib/Client/Tools/APT.py @@ -68,6 +68,11 @@ class APT(Bcfg2.Client.Tools.PkgTool): self.logger.error("Got Unsupported pattern %s from debsums" \ % item) files.append(item) + # We check if there is file in the checksum to do + if files: + # if files are found there we try to be sure our modlist is sane + # with erroneous symlinks + modlist = [os.path.realpath(filename) for filename in modlist] bad = [filename for filename in files if filename not in modlist] if bad: self.logger.info("Package %s failed validation. Bad files are:" % \ -- cgit v1.2.3-1-g7c22