diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-06-21 03:04:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-06-21 03:04:41 +0000 |
commit | cddf4b427824a0b8025deab3775afc2c4957e7c7 (patch) | |
tree | 7a99dc261ba812b1839f729d0eaa25ad61f3429f | |
parent | c47cb48ef2be50f29bdc0861e8f6103e61680269 (diff) | |
download | portage-cddf4b427824a0b8025deab3775afc2c4957e7c7.tar.gz portage-cddf4b427824a0b8025deab3775afc2c4957e7c7.tar.bz2 portage-cddf4b427824a0b8025deab3775afc2c4957e7c7.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
svn path=/main/trunk/; revision=6896
-rwxr-xr-x | bin/quickpkg | 4 |
1 files changed, 4 insertions, 0 deletions
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() |