summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Debian.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-04-05 21:31:55 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-04-05 21:31:55 +0000
commit3dc6a1d179462464c21dce9dc0f1a31d5e224456 (patch)
tree3a08636880e0d26f1c6b1960cbedecb2ad67835d /src/lib/Client/Debian.py
parent092ec778e2df339a81bb2cf60e922c7cb2df44de (diff)
downloadbcfg2-3dc6a1d179462464c21dce9dc0f1a31d5e224456.tar.gz
bcfg2-3dc6a1d179462464c21dce9dc0f1a31d5e224456.tar.bz2
bcfg2-3dc6a1d179462464c21dce9dc0f1a31d5e224456.zip
fixed statistics/clean problem
(Logical change 1.219) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@917 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Debian.py')
-rw-r--r--src/lib/Client/Debian.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py
index e1baf1089..326c0d81b 100644
--- a/src/lib/Client/Debian.py
+++ b/src/lib/Client/Debian.py
@@ -10,6 +10,8 @@ import apt_pkg
from Bcfg2.Client.Toolset import Toolset
+from elementtree.ElementTree import tostring
+
class Debian(Toolset):
'''The Debian toolset implements package and service operations and inherits
the rest from Toolset.Toolset'''
@@ -197,8 +199,11 @@ class Debian(Toolset):
if cmdrc == 0:
self.CondPrint('verbose', "Single Pass Succeded")
# set all states to true and flush workqueues
- for pkg in packages:
- self.states[pkg] = True
+ badpkgs = [entry for entry in self.states.keys() if entry.tag == 'Package'
+ and not self.states[entry]]
+ for entry in badpkgs:
+ self.CondPrint('debug', 'Setting state to true for pkg %s' % (entry.get('name')))
+ self.states[entry] = True
self.Refresh()
else:
self.CondPrint("verbose", "Single Pass Failed")