From 357eb4f65a5c315d8e43eb0493f02db03b2b20d7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 21 Jun 2007 03:51:02 +0000 Subject: [PATCH] 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 --- bin/quickpkg | 6 ++++++ 1 file changed, 6 insertions(+) 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() -- 2.26.2