as noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try...
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 03:51:02 +0000 (03:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Jun 2007 03:51:02 +0000 (03:51 -0000)
svn path=/main/branches/2.1.2/; revision=6898

bin/quickpkg

index 1b8cd9bff7bd3df9a78d1736a250e434a124d446..d32a92fcb39dd64df01e978bec5d2fb0394607f9 100755 (executable)
@@ -104,6 +104,12 @@ def quickpkg_main(options, args, eout):
                                if not dblnk.exists():
                                        # unmerged by a concurrent process
                                        continue
+                               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)
                                pkgs_for_arg += 1
                                contents = dblnk.getcontents()