aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-08-15 01:24:24 +0200
committerZac Medico <zmedico@gentoo.org>2010-08-14 16:31:28 -0700
commit249631f872e854a379319e5c6d5f871830c80860 (patch)
tree70c599ab8fc2ef2a00f39831c8ee010f4a3c518e /bin/quickpkg
parentAdd support for NOCOLOR variable. (diff)
downloadportage-249631f872e854a379319e5c6d5f871830c80860.tar.gz
portage-249631f872e854a379319e5c6d5f871830c80860.tar.bz2
portage-249631f872e854a379319e5c6d5f871830c80860.zip
portage.dep: Integrate the functionality of flatten into use_reduce
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index 8734a2bf5..042e98cc2 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -21,7 +21,7 @@ except ImportError:
from portage import os
from portage import xpak
from portage.dbapi.dep_expand import dep_expand
-from portage.dep import flatten, use_reduce
+from portage.dep import use_reduce
from portage.exception import InvalidAtom, InvalidData, InvalidDependString, PackageSetNotFound
from portage.util import ConfigProtect, ensure_dirs, shlex_split
from portage.dbapi.vartree import dblink, tar_contents
@@ -78,7 +78,7 @@ def quickpkg_atom(options, infos, arg, eout):
iuse = [ x.lstrip("+-") for x in iuse.split() ]
use = use.split()
try:
- restrict = flatten(use_reduce(restrict, uselist=use))
+ restrict = use_reduce(restrict, uselist=use, flat=True)
except InvalidDependString as e:
eout.eerror("Invalid RESTRICT metadata " + \
"for '%s': %s; skipping" % (cpv, str(e)))