summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-01-13 19:48:59 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-01-13 19:48:59 +0000
commit95e0e4207468efc253aabe0d36dfb816aac59653 (patch)
treef622f161589eafe5e6c0af9839c9e388b1d07a7f /src/lib/Client
parentbacf0c0a07956b217b7953953f5f5fca852f1178 (diff)
downloadbcfg2-95e0e4207468efc253aabe0d36dfb816aac59653.tar.gz
bcfg2-95e0e4207468efc253aabe0d36dfb816aac59653.tar.bz2
bcfg2-95e0e4207468efc253aabe0d36dfb816aac59653.zip
Revert dict accesses in APT tool
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5022 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/APT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index f0fa9a642..05d3303b6 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -140,7 +140,7 @@ class APT(Bcfg2.Client.Tools.Tool):
ipkgs = []
bad_pkgs = []
for pkg in packages:
- if not pkg.get('name') in self.pkg_cache:
+ if not self.pkg_cache.has_key(pkg.get('name')):
self.logger.error("APT has no information about package %s" % (pkg.get('name')))
continue
if pkg.get('version') in ['auto', 'any']: