aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-27 18:32:27 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-27 18:32:27 -0500
commit00e918798ece8a6fdf38ba2e5edad1c5b328c183 (patch)
tree98b88267c07e42f6720c15f1532598477d51a840
parentekeyword: fix crash when passing "" as the arch (diff)
downloadgentoolkit-00e918798ece8a6fdf38ba2e5edad1c5b328c183.tar.gz
gentoolkit-00e918798ece8a6fdf38ba2e5edad1c5b328c183.tar.bz2
gentoolkit-00e918798ece8a6fdf38ba2e5edad1c5b328c183.zip
ekeyword: allow passing arch_status={} to disable profile logic
-rwxr-xr-xsrc/ekeyword/ekeyword.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ekeyword/ekeyword.py b/src/ekeyword/ekeyword.py
index 7a0cc7d..64f4eb0 100755
--- a/src/ekeyword/ekeyword.py
+++ b/src/ekeyword/ekeyword.py
@@ -168,7 +168,7 @@ def process_keywords(keywords, ops, arch_status=None):
for op, oarch, refarch in ops:
# Figure out which keywords we need to modify.
if oarch == 'all':
- if not arch_status:
+ if arch_status is None:
raise ValueError('unable to process "all" w/out profiles.desc')
old_arches = set([keyword_to_arch(a) for a in new_keywords])
if op is None: