diff options
-rw-r--r-- | src/lib/Client/Tools/SYSV.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/SYSV.py b/src/lib/Client/Tools/SYSV.py index 002e7ae22..b540848fb 100644 --- a/src/lib/Client/Tools/SYSV.py +++ b/src/lib/Client/Tools/SYSV.py @@ -57,9 +57,12 @@ class SYSV(Bcfg2.Client.Tools.PkgTool): (entry.get('version'), entry.get('name')))[0] if cmdrc != 0: - self.logger.debug("Package %s version incorrect: have %s want %s" \ - % (entry.get('name'), self.installed[entry.get('name')], - entry.get('version'))) + if entry.get('name') in self.installed: + self.logger.debug("Package %s version incorrect: have %s want %s" \ + % (entry.get('name'), self.installed[entry.get('name')], + entry.get('version'))) + else: + self.logger.debug("Package %s not installed" % (entry.get("name"))) else: if self.setup['quick'] or entry.attrib.get('verify', 'true') == 'false': return True |