summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-13 14:58:17 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-13 14:58:17 -0700
commitbf28492ed8ccc7fd3679a8e5433101a0945d417d (patch)
tree894c63fa49dff6cf78f64fc12a8d5b6569afb314 /bin/quickpkg
parentc2523b8833bcf0074f7446a5cbf165cf50f8aa2c (diff)
downloadportage-bf28492ed8ccc7fd3679a8e5433101a0945d417d.tar.gz
portage-bf28492ed8ccc7fd3679a8e5433101a0945d417d.tar.bz2
portage-bf28492ed8ccc7fd3679a8e5433101a0945d417d.zip
quickpkg: use AmbiguousPackageName
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index a326bd44a..69472248f 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -22,8 +22,8 @@ from portage import os
from portage import xpak
from portage.dbapi.dep_expand import dep_expand
from portage.dep import Atom, extended_cp_match, use_reduce
-from portage.exception import InvalidAtom, InvalidData, InvalidDependString, \
- PackageSetNotFound, PermissionDenied
+from portage.exception import (AmbiguousPackageName, InvalidAtom, InvalidData,
+ InvalidDependString, PackageSetNotFound, PermissionDenied)
from portage.util import ConfigProtect, ensure_dirs, shlex_split
from portage.dbapi.vartree import dblink, tar_contents
from portage.checksum import perform_md5
@@ -43,7 +43,7 @@ def quickpkg_atom(options, infos, arg, eout):
try:
atom = dep_expand(arg, mydb=vardb, settings=vartree.settings)
- except ValueError as e:
+ except AmbiguousPackageName as e:
# Multiple matches thrown from cpv_expand
eout.eerror("Please use a more specific atom: %s" % \
" ".join(e.args[0]))