diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-25 23:47:16 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-25 23:47:16 +0000 |
commit | 61c22fb8442281e6ecc5f3704c56f78beb511c7d (patch) | |
tree | 3cec5e3d45144ce24bce6683c99d5e43c6af24d0 /src | |
parent | d2b9831aced5f7c1c3fbc7c247da29bb27b687a4 (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Client/Tools/APT.py | 7 |
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: |