diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-21 03:51:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-21 03:51:02 +0000 |
commit | 357eb4f65a5c315d8e43eb0493f02db03b2b20d7 (patch) | |
tree | ec5b262f29926e7794fb4a4299efe54fefc9f85a | |
parent | 9ff995078c534eca001138915a5e665380974803 (diff) | |
download | portage-357eb4f65a5c315d8e43eb0493f02db03b2b20d7.tar.gz portage-357eb4f65a5c315d8e43eb0493f02db03b2b20d7.tar.bz2 portage-357eb4f65a5c315d8e43eb0493f02db03b2b20d7.zip |
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
-rwxr-xr-x | bin/quickpkg | 6 |
1 files changed, 6 insertions, 0 deletions
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() |