summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-11-25 23:47:16 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-11-25 23:47:16 +0000
commit61c22fb8442281e6ecc5f3704c56f78beb511c7d (patch)
tree3cec5e3d45144ce24bce6683c99d5e43c6af24d0 /src/lib
parentd2b9831aced5f7c1c3fbc7c247da29bb27b687a4 (diff)
downloadbcfg2-61c22fb8442281e6ecc5f3704c56f78beb511c7d.tar.gz
bcfg2-61c22fb8442281e6ecc5f3704c56f78beb511c7d.tar.bz2
bcfg2-61c22fb8442281e6ecc5f3704c56f78beb511c7d.zip
Fix apt checksum comparison (output formatting changed with new options)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2539 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Tools/APT.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index b6122ef9c..0bd6acee9 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -53,7 +53,12 @@ class APT(Bcfg2.Client.Tools.PkgTool):
if self.installed[entry.attrib['name']] == entry.attrib['version']:
if not self.setup['quick'] and entry.get('verify', 'true') == 'true':
output = self.cmd.run("/usr/bin/debsums -as %s" % entry.get('name'))[1]
- if [filename for filename in output if filename not in modlist]:
+ files = [item.split()[-1] for item in output]
+ bad = [filename for filename in files if filename not in modlist]
+ if bad:
+ self.logger.info("Package %s failed validation. Bad files are:" % \
+ entry.get('name'))
+ self.logger.info(bad)
return False
return True
else: