as noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try...
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Jun 2007 03:04:41 +0000 (03:04 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Jun 2007 03:04:41 +0000 (03:04 -0000)
svn path=/main/trunk/; revision=6896

bin/quickpkg

index f2f183579ff3118deb91c6d66edaf38e217ec1ba..a0799f1b10193e5bde4265981836add3d6dec492 100755 (executable)
@@ -54,6 +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]:
+                                       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()