summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-04-24 10:45:42 +0200
committerOlav Vitters <olav@vitters.nl>2020-04-24 10:45:42 +0200
commita8ec952ecd9111d9edf2f602d5fd4f4f0dce0af4 (patch)
tree9ca6f565f4c60c1a89140c84f89f42772113c8ea
parent2bf88394e1e61a0733e40e56027a9e826ec1522e (diff)
downloadmgagnome-a8ec952ecd9111d9edf2f602d5fd4f4f0dce0af4.tar
mgagnome-a8ec952ecd9111d9edf2f602d5fd4f4f0dce0af4.tar.gz
mgagnome-a8ec952ecd9111d9edf2f602d5fd4f4f0dce0af4.tar.bz2
mgagnome-a8ec952ecd9111d9edf2f602d5fd4f4f0dce0af4.tar.xz
mgagnome-a8ec952ecd9111d9edf2f602d5fd4f4f0dce0af4.zip
pylint fallout fixes
-rwxr-xr-xmgagnome5
1 files changed, 4 insertions, 1 deletions
diff --git a/mgagnome b/mgagnome
index cb7cd10..7ba8752 100755
--- a/mgagnome
+++ b/mgagnome
@@ -964,8 +964,8 @@ class Upstream():
self.names = tarballs
- @lru_cache(maxsize=4096)
@classmethod
+ @lru_cache(maxsize=4096)
def versions(cls, module):
versions = None
@@ -1532,6 +1532,9 @@ def cmd_clean_spec_multi(args):
provides_alt = [clean_pkgconfig_prov(prov) for prov in provides if keys['check_provide'](prov)]
change_to = None
if len(provides_alt) == 1:
+ if options.debug:
+ print("NOTICE: Only one available option, using %s" % provides_alt[0])
+
change_to = provides_alt[0]
elif provides_alt and 'extra' in keys:
# Determine base require (e.g. gtk+3.0-devel --> gtk+3.0)