summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/FreeBSDPackage.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/FreeBSDPackage.py')
-rw-r--r--src/lib/Client/Tools/FreeBSDPackage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/FreeBSDPackage.py b/src/lib/Client/Tools/FreeBSDPackage.py
index 117873c9f..dbd32a122 100644
--- a/src/lib/Client/Tools/FreeBSDPackage.py
+++ b/src/lib/Client/Tools/FreeBSDPackage.py
@@ -29,11 +29,11 @@ class FreeBSDPackage(Bcfg2.Client.Tools.PkgTool):
self.installed[name] = version
def VerifyPackage(self, entry, modlist):
- if not entry.attrib.has_key('version'):
+ if not 'version' in entry.attrib:
self.logger.info("Cannot verify unversioned package %s" %
(entry.attrib['name']))
return False
- if self.installed.has_key(entry.attrib['name']):
+ if entry.attrib['name'] in self.installed:
if self.installed[entry.attrib['name']] == entry.attrib['version']:
# TODO: verfification
return True