When an ebuild has conditionals in it's LICENSE, calculate
authorZac Medico <zmedico@gentoo.org>
Tue, 9 Oct 2007 15:38:53 +0000 (15:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 9 Oct 2007 15:38:53 +0000 (15:38 -0000)
USE before the visibility check.

svn path=/main/trunk/; revision=8014

pym/emerge/__init__.py

index 18bc8f443ceb201d2d802dccfec50a0efa85b4e9..11e5c954dee0ce5f60ec4f44317d3c3be5b90571 100644 (file)
@@ -2005,6 +2005,9 @@ class depgraph(object):
                                        except KeyError:
                                                # masked by corruption
                                                continue
+                                       if "?" in metadata["LICENSE"]:
+                                               pkgsettings.setcpv(cpv, mydb=metadata)
+                                               metadata["USE"] = pkgsettings["USE"]
                                        try:
                                                if not visible(pkgsettings, cpv, metadata,
                                                        built=False, installed=False):