From: Mike Frysinger Date: Thu, 21 Jun 2007 03:04:41 +0000 (-0000) Subject: as noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try... X-Git-Tag: v2.2_pre1~1210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cddf4b427824a0b8025deab3775afc2c4957e7c7;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 svn path=/main/trunk/; revision=6896 --- diff --git a/bin/quickpkg b/bin/quickpkg index f2f183579..a0799f1b1 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -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()