Fix USE logic for built packages when populating the filtered repo.
authorZac Medico <zmedico@gentoo.org>
Tue, 9 Oct 2007 17:57:37 +0000 (17:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 9 Oct 2007 17:57:37 +0000 (17:57 -0000)
svn path=/main/trunk/; revision=8017

pym/emerge/__init__.py

index d92ec440cc379fe6106665196b6f0cd2675b5631..d02fe477008e2edcfd975d505dd0073127b51a1a 100644 (file)
@@ -1822,12 +1822,12 @@ class depgraph(object):
                                        if slot is not None:
                                                if slot != metadata["SLOT"]:
                                                        continue
-                                       if not built and \
-                                               (is_virt or "?" in metadata["LICENSE"]):
-                                               pkgsettings.setcpv(cpv, mydb=metadata)
-                                               metadata["USE"] = pkgsettings["USE"]
-                                       else:
-                                               metadata["USE"] = ""
+                                       if not built:
+                                               if (is_virt or "?" in metadata["LICENSE"]):
+                                                       pkgsettings.setcpv(cpv, mydb=metadata)
+                                                       metadata["USE"] = pkgsettings["USE"]
+                                               else:
+                                                       metadata["USE"] = ""
 
                                        try:
                                                if not visible(pkgsettings, cpv, metadata,