From: Zac Medico Date: Sun, 9 Jul 2006 18:49:39 +0000 (-0000) Subject: Use the abstract dbapi.aux_get() interface to unify retrieval of IUSE in depgraph... X-Git-Tag: v2.1.1~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2f3175ac01f5c9e97e53b087c92bacb96db6e48;p=portage.git Use the abstract dbapi.aux_get() interface to unify retrieval of IUSE in depgraph.create(). svn path=/main/trunk/; revision=3819 --- 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