summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-21 03:42:16 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-21 03:42:16 +0000
commit11941f131b5fef54b3a4021f4285d7804a065935 (patch)
treec33393f2511f723e24c34aa45594380314d6eada /bin
parentas noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if w... (diff)
downloadportage-idfetch-11941f131b5fef54b3a4021f4285d7804a065935.tar.gz
portage-idfetch-11941f131b5fef54b3a4021f4285d7804a065935.tar.bz2
portage-idfetch-11941f131b5fef54b3a4021f4285d7804a065935.zip
Make IUSE handling safe for IUSE defaults.
svn path=/main/trunk/; revision=6897
Diffstat (limited to 'bin')
-rwxr-xr-xbin/quickpkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index a0799f1b..0070ffac 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -54,8 +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]:
+ 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)