summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 3c1f0b156..5f7e047bb 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -2983,7 +2983,11 @@ elif "config"==myaction:
portage.writemsg("!!! (Did you specify a version but forget to prefix with '='?)\n")
sys.exit(1)
print
- pkgs = portage.db[portage.root]["vartree"].dbapi.match(myfiles[0])
+ try:
+ pkgs = portage.db[portage.root]["vartree"].dbapi.match(myfiles[0])
+ except ValueError, e:
+ # Multiple matches thrown from cpv_expand
+ pkgs = e.args[0]
if len(pkgs) == 0:
print "No packages found.\n"
sys.exit(0)