diff options
author | Olav Vitters <olav@vitters.nl> | 2014-07-08 00:59:52 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2014-07-08 00:59:52 +0200 |
commit | 11605ce5f6661303b09aa9cad8bba7a4eda89f8f (patch) | |
tree | cfb8038306d50b5e67f09591bdece9f19eb28606 | |
parent | 417ad85be3c4c9b1660a8e00ce8a2ce0ee0f125a (diff) | |
download | mgagnome-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-x | mgagnome | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |