summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-09 18:49:39 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-09 18:49:39 +0000
commite2f3175ac01f5c9e97e53b087c92bacb96db6e48 (patch)
tree17e13d5fa61fed8e95f3b511cfeb54c249129d5d
parent73318907b69c05acd5e1e43278fa33bf781e829d (diff)
downloadportage-e2f3175ac01f5c9e97e53b087c92bacb96db6e48.tar.gz
portage-e2f3175ac01f5c9e97e53b087c92bacb96db6e48.tar.bz2
portage-e2f3175ac01f5c9e97e53b087c92bacb96db6e48.zip
Use the abstract dbapi.aux_get() interface to unify retrieval of IUSE in depgraph.create().
svn path=/main/trunk/; revision=3819
-rwxr-xr-xbin/emerge5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/emerge b/bin/emerge
index 3924d29fe..568f156a5 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -718,10 +718,7 @@ class depgraph:
if merging==0 and "--newuse" in self.myopts and \
vardbapi.cpv_exists(mykey):
old_use = vardbapi.aux_get(mykey, ["USE"])[0].split()
- if mytype == "binary":
- iuses = set(bindb.aux_get(mykey, ["IUSE"])[0].split())
- else:
- iuses = set(portdb.aux_get(mykey, ["IUSE"])[0].split())
+ iuses = set(mydbapi.aux_get(mykey, ["IUSE"])[0].split())
if iuses.intersection(old_use) != \
iuses.intersection(myuse):
merging=1