summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-01 07:09:16 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-01 07:09:16 +0000
commit96e93380a5f34080862aa46b231d13dbf1bd8c6a (patch)
tree84947dff71be08e827a75cfc9d5f3afe16ee273d
parenta2973e0260746c6cf11c804fa991727b07ed099a (diff)
downloadportage-96e93380a5f34080862aa46b231d13dbf1bd8c6a.tar.gz
portage-96e93380a5f34080862aa46b231d13dbf1bd8c6a.tar.bz2
portage-96e93380a5f34080862aa46b231d13dbf1bd8c6a.zip
Fix --newuse so that it works correctly with --usepkg.
svn path=/main/trunk/; revision=5859
-rwxr-xr-xbin/emerge3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index 059140140..da873ed83 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1130,9 +1130,8 @@ class depgraph:
If the package has new iuse flags or different use flags then if
--newuse is specified, we need to merge the package. """
if merging==0 and "--newuse" in self.myopts and \
- mytype == "ebuild" and \
vardbapi.cpv_exists(mykey):
- pkgsettings.setcpv(mykey, mydb=portdb)
+ pkgsettings.setcpv(mykey, mydb=mydbapi)
forced_flags = set()
forced_flags.update(pkgsettings.useforce)
forced_flags.update(pkgsettings.usemask)