summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-01-13 13:17:33 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-01-13 13:17:33 +0000
commit5fbbf82fd8d9d128b734f3d9d655de6c12b484d0 (patch)
treea6c78c1423dab1a700cf600a0888e2376e9ce6b8
parente1ef715514298fea06e86d07358e56c49016cff2 (diff)
downloadbcfg2-5fbbf82fd8d9d128b734f3d9d655de6c12b484d0.tar.gz
bcfg2-5fbbf82fd8d9d128b734f3d9d655de6c12b484d0.tar.bz2
bcfg2-5fbbf82fd8d9d128b734f3d9d655de6c12b484d0.zip
Improve error message for APT.py when version=any (Resolves Ticket #631)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5017 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/APT.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index 231b69adb..338694258 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -151,6 +151,8 @@ class APT(Bcfg2.Client.Tools.Tool):
[p.VerStr for p in self.pkg_cache[pkg.get('name')]._pkg.VersionList]:
ipkgs.append("%s=%s" % (pkg.get('name'), pkg.get('version')))
continue
+ if pkg.get('version') == 'any':
+ self.logger.error("Cannot choose appropriate version for pkg %s; version=any" % pkg.get('name'))
bad_pkgs.append(pkg.get('name'))
if bad_pkgs:
self.logger.error("Cannot find correct versions of packages:")