summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-07-18 14:38:09 -0700
committerZac Medico <zmedico@gentoo.org>2012-07-18 14:38:09 -0700
commit30ec783c0fc64a02fda38980bded22dc0055a42d (patch)
treeb025a74c77ced261b2f38f1ae954043757ede558 /bin/quickpkg
parent2472be18586f41c6e74a6d1f6a88c17a415eca9b (diff)
downloadportage-30ec783c0fc64a02fda38980bded22dc0055a42d.tar.gz
portage-30ec783c0fc64a02fda38980bded22dc0055a42d.tar.bz2
portage-30ec783c0fc64a02fda38980bded22dc0055a42d.zip
Fix extended atom match for =* operator.
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg13
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index a6bd4d4bd..76259c5c1 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -21,7 +21,7 @@ except ImportError:
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.dep import Atom, use_reduce
from portage.exception import (AmbiguousPackageName, InvalidAtom, InvalidData,
InvalidDependString, PackageSetNotFound, PermissionDenied)
from portage.util import ConfigProtect, ensure_dirs, shlex_split
@@ -204,16 +204,15 @@ def quickpkg_extended_atom(options, infos, atom, eout):
atoms.append(cpv_atom)
continue
- if not extended_cp_match(atom.cp, cpv_atom.cp):
+ if not portage.match_from_list(atom, [cpv]):
continue
if require_metadata:
- slot, repo = vardb.aux_get(cpv, ["SLOT", "repository"])
-
- if atom.slot and atom.slot != slot:
+ try:
+ cpv = vardb._pkg_str(cpv, atom.repo)
+ except (KeyError, InvalidData):
continue
-
- if atom.repo and atom.repo != repo:
+ if not portage.match_from_list(atom, [cpv]):
continue
atoms.append(cpv_atom)