Make IUSE handling safe for IUSE defaults.
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 03:42:16 +0000 (03:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 03:42:16 +0000 (03:42 -0000)
svn path=/main/trunk/; revision=6897

bin/quickpkg

index a0799f1b10193e5bde4265981836add3d6dec492..0070ffac9919b6170f2e8a3124b1dfae9f8d4147 100755 (executable)
@@ -54,8 +54,10 @@ def quickpkg_main(options, args, eout):
                                if not dblnk.exists():
                                        # unmerged by a concurrent process
                                        continue
-                               uses = dblnk.vartree.dbapi.aux_get(cpv, ["IUSE","USE"])
-                               if "bindist" in uses[0] and "bindist" not in uses[1]:
+                               iuse, use = vardb.aux_get(cpv, ["IUSE","USE"])
+                               iuse = [ x.lstrip("+-") for x in iuse.split() ]
+                               use = use.split()
+                               if "bindist" in iuse and "bindist" not in use:
                                        eout.ewarn("%s: package was emerged with USE=-bindist!" % cpv)
                                        eout.ewarn("%s: it may not be legal to redistribute this." % cpv)
                                eout.ebegin("Building package for %s" % cpv)