summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-06-21 03:04:41 +0000
committerMike Frysinger <vapier@gentoo.org>2007-06-21 03:04:41 +0000
commitcddf4b427824a0b8025deab3775afc2c4957e7c7 (patch)
tree7a99dc261ba812b1839f729d0eaa25ad61f3429f /bin/quickpkg
parentIn dblink._security_check(), use os.path.realpath to make sure that the same ... (diff)
downloadportage-idfetch-cddf4b427824a0b8025deab3775afc2c4957e7c7.tar.gz
portage-idfetch-cddf4b427824a0b8025deab3775afc2c4957e7c7.tar.bz2
portage-idfetch-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
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index f2f18357..a0799f1b 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()