From: Zac Medico Date: Thu, 21 Jun 2007 03:51:02 +0000 (-0000) Subject: as noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try... X-Git-Tag: v2.1.3~199 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=357eb4f65a5c315d8e43eb0493f02db03b2b20d7;p=portage.git as noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try to create a binpkg for something that has IUSE=bindist but was emerged with USE=-bindist (trunk r6895:6897) svn path=/main/branches/2.1.2/; revision=6898 --- diff --git a/bin/quickpkg b/bin/quickpkg index 1b8cd9bff..d32a92fcb 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -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()