summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-11-03 16:04:46 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-11-03 16:04:46 +0000
commit87bace51324bed0fe1d619c4da67ede9266a72dc (patch)
treedc6f1a778e4008a40082b52b7a647a992e7b9beb /src/lib
parent5008f184fa10494a3672fde4525230c5450188de (diff)
downloadbcfg2-87bace51324bed0fe1d619c4da67ede9266a72dc.tar.gz
bcfg2-87bace51324bed0fe1d619c4da67ede9266a72dc.tar.bz2
bcfg2-87bace51324bed0fe1d619c4da67ede9266a72dc.zip
Fix error in state handling (Resolves Ticket #479)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3908 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Tools/APT.py3
-rw-r--r--src/lib/Client/Tools/__init__.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index 64db32ad6..269250f4b 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -60,6 +60,9 @@ class APT(Bcfg2.Client.Tools.PkgTool):
files.append(item.split()[-1])
elif "can't open" in item:
files.append(item.split()[5])
+ elif "is not installed" in item:
+ self.logger.error("Package %s is not fully installed" \
+ % entry.get('name'))
else:
self.logger.error("Got Unsupported pattern %s from debsums" \
% item)
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 28c9600d9..ed8649082 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -245,6 +245,7 @@ class PkgTool(Tool):
self.states[pkg] = True
else:
self.logger.error("Failed to install package %s" % (pkg.get('name')))
+ self.RefreshPackages()
for entry in [ent for ent in packages if self.states[ent]]:
self.modified.append(entry)