summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2014-07-08 00:59:52 +0200
committerOlav Vitters <olav@vitters.nl>2014-07-08 00:59:52 +0200
commit11605ce5f6661303b09aa9cad8bba7a4eda89f8f (patch)
treecfb8038306d50b5e67f09591bdece9f19eb28606
parent417ad85be3c4c9b1660a8e00ce8a2ce0ee0f125a (diff)
downloadmgagnome-11605ce5f6661303b09aa9cad8bba7a4eda89f8f.tar
mgagnome-11605ce5f6661303b09aa9cad8bba7a4eda89f8f.tar.gz
mgagnome-11605ce5f6661303b09aa9cad8bba7a4eda89f8f.tar.bz2
mgagnome-11605ce5f6661303b09aa9cad8bba7a4eda89f8f.tar.xz
mgagnome-11605ce5f6661303b09aa9cad8bba7a4eda89f8f.zip
simplify checking for alternative provides logic
-rwxr-xr-xmgagnome4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgagnome b/mgagnome
index be8efcd..3f49275 100755
--- a/mgagnome
+++ b/mgagnome
@@ -1307,9 +1307,9 @@ def cmd_clean_spec_multi(args):
change_to = None
if len(provides_alt) == 1:
change_to = provides_alt[0]
- elif len(provides_alt):
+ elif len(provides_alt) and 'extra' in keys:
basereq = keys['basereq'](req)
- check_for = keys['extra'](basereq) if 'extra' in keys else []
+ check_for = keys['extra'](basereq)
for check in check_for:
if check in provides_alt: