diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-11-11 15:49:05 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-11-11 15:49:05 +0000 |
commit | 6d2a3aa863882c0b6d0e5642c4906b08375e1689 (patch) | |
tree | e48b59455dfe7bb3658015c08c0c5a727443a9aa | |
parent | 4db59bdd322de8d2b98530b2290a2e8b9b414f28 (diff) | |
download | bcfg2-6d2a3aa863882c0b6d0e5642c4906b08375e1689.tar.gz bcfg2-6d2a3aa863882c0b6d0e5642c4906b08375e1689.tar.bz2 bcfg2-6d2a3aa863882c0b6d0e5642c4906b08375e1689.zip |
fix some runtime errors
(Logical change 1.151)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@669 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Debian.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py index ec9dd53c8..a6dd5b2d4 100644 --- a/src/lib/Client/Debian.py +++ b/src/lib/Client/Debian.py @@ -1,5 +1,5 @@ '''This is the bcfg2 support for debian''' -__revision__ = '$Revision$' +__revision__ = '$Revision: 1.39 $' from copy import deepcopy from glob import glob @@ -126,8 +126,8 @@ class Debian(Toolset): print "Need to remove:", self.pkgwork['remove'] self.setup['quick'] = True - self.CondPrint('dryrun', "Packages to update: %s" % (" ".join(self.pkgwork['update']))) - self.CondPrint('dryrun', "Packages to add: %s" % (" ".join(self.pkgwork['add']))) + self.CondPrint('dryrun', "Packages to update: %s" % (" ".join([pkg.get('name') for pkg in self.pkgwork['update']]))) + self.CondPrint('dryrun', "Packages to add: %s" % (" ".join([pkg.get('name') for pkg in self.pkgwork['add']]))) self.CondPrint('dryrun', "Packages to remove %s" % (" ".join(self.pkgwork['remove']))) for entry in [entry for entry in self.states if (not self.states[entry] and (entry.tag != 'Package'))]: @@ -177,7 +177,7 @@ class Debian(Toolset): self.Refresh() for pkg in packages: # handle state tracking updates - if self.VerifyPackage(pkg): + if self.VerifyPackage(pkg, []): self.CondPrint("verbose", "Forcing state to true for pkg %s" % (pkg.get('name'))) self.states[pkg] = True else: |