aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2009-10-11 08:17:20 +0000
committerAlistair Bush <ali_bush@gentoo.org>2009-10-11 08:17:20 +0000
commitee20651694b34f6e4c9805f207d18dcd7af16259 (patch)
tree2531a3563ee06ba4e12aa79b3bc16af6355b0b69
parentMoved get_needed_packages to VersionManager as it is used there as well. (diff)
downloadjava-config-ee20651694b34f6e4c9805f207d18dcd7af16259.tar.gz
java-config-ee20651694b34f6e4c9805f207d18dcd7af16259.tar.bz2
java-config-ee20651694b34f6e4c9805f207d18dcd7af16259.zip
Fix TypeError
svn path=/projects/java-config-2/trunk/; revision=7932
-rw-r--r--src/java_config_2/VersionManager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java_config_2/VersionManager.py b/src/java_config_2/VersionManager.py
index 77c6f47..170cbb7 100644
--- a/src/java_config_2/VersionManager.py
+++ b/src/java_config_2/VersionManager.py
@@ -57,7 +57,7 @@ class VersionManager:
matched_atoms.append({'equality':match[0], 'type':match[1], 'version':match[2]})
if len(matched_atoms) == 0 and pkg_name and highest_pkg_target:
- raise Exception("Couldn't find a suitable VM due to dependency %s having a required target of %s" % pkg_name, highest_pkg_target)
+ raise Exception("Couldn't find a suitable VM due to dependency %s having a required target of %s" % (pkg_name, highest_pkg_target))
matched_atoms.sort()
matched_atoms.reverse()
@@ -305,12 +305,14 @@ def get_needed_packages(*packages):
p = manager.get_package(dep_pkg)
if p is None:
if ',' in dep_pkg:
+ print "error"
msg = """
Package %s has a broken DEPEND entry in package.env. Please reinstall it.
If this does not fix it, please report this to http://bugs.gentoo.org
"""
msg = msg % pkg
else:
+ print "error"
msg = """
Package %s not found in the system. This package is listed as a
dependency of %s. Please run emerge -1Da %s and if it does not bring in the