summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-16 20:47:53 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-16 20:47:53 +0000
commit01dace4609a3700ebc0fed8327ed47a2419d4d1d (patch)
treedde15a536c052322547e33cbadbbbd40e33ffa97
parentd480d8123e91b7fe0580520cd6ea365fb9e7492f (diff)
downloadportage-01dace4609a3700ebc0fed8327ed47a2419d4d1d.tar.gz
portage-01dace4609a3700ebc0fed8327ed47a2419d4d1d.tar.bz2
portage-01dace4609a3700ebc0fed8327ed47a2419d4d1d.zip
Fix broken --usepkg masking logic for bug #140694.
svn path=/main/trunk/; revision=3907
-rwxr-xr-xbin/emerge4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index 3ddd61c2a..9e1ac141e 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1052,8 +1052,8 @@ class depgraph:
if "--usepkgonly" not in self.myopts:
# Remove any binary package entries that are masked in the portage tree (#55871)
myeb_pkg_matches = [pkg for pkg in myeb_pkg_matches \
- if pkg not in myeb_matches and \
- portdb.cpv_exists(pkg)]
+ if pkg in myeb_matches or \
+ not portdb.cpv_exists(pkg)]
myeb_pkg = portage.best(myeb_pkg_matches)
if not myeb_pkg: