summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-04-28 10:49:19 +0200
committerOlav Vitters <olav@vitters.nl>2020-04-28 10:49:19 +0200
commit4a619f2b0ea515fd692a80dd8b83f5ebc1755b2f (patch)
treeb7f7e6fb11ff53f6b53c42b31eb66ad41305659f
parentd230e414d3169a63a3d16c17bbcc1c81699f8b49 (diff)
downloadmgagnome-4a619f2b0ea515fd692a80dd8b83f5ebc1755b2f.tar
mgagnome-4a619f2b0ea515fd692a80dd8b83f5ebc1755b2f.tar.gz
mgagnome-4a619f2b0ea515fd692a80dd8b83f5ebc1755b2f.tar.bz2
mgagnome-4a619f2b0ea515fd692a80dd8b83f5ebc1755b2f.tar.xz
mgagnome-4a619f2b0ea515fd692a80dd8b83f5ebc1755b2f.zip
pylint: follow variable naming guideline
-rwxr-xr-xmgagnome32
1 files changed, 16 insertions, 16 deletions
diff --git a/mgagnome b/mgagnome
index 5449563..03843fe 100755
--- a/mgagnome
+++ b/mgagnome
@@ -987,9 +987,9 @@ class Downstream():
def __init__(self):
contents = subprocess.check_output(['urpmf', '--qf', '%name|%version|%files', '.', "--media", self.MEDIA], close_fds=True).decode("utf-8").strip("\n").splitlines()
- FILES = {}
- TARBALLS = {}
- PACKAGES = set()
+ srpm_files = {}
+ module_srpm_tarballs = {}
+ packages = set()
for line in contents:
try:
@@ -998,7 +998,7 @@ class Downstream():
print(line, file=sys.stderr)
continue
- PACKAGES.add(srpm)
+ packages.add(srpm)
if '.tar' in filename:
match = self.re_file.match(filename)
@@ -1006,23 +1006,23 @@ class Downstream():
fileinfo = match.groupdict()
module = fileinfo['module']
- if module not in TARBALLS:
- TARBALLS[module] = {}
+ if module not in module_srpm_tarballs:
+ module_srpm_tarballs[module] = {}
- if srpm in TARBALLS[module]:
+ if srpm in module_srpm_tarballs[module]:
# srpm seen before, check if version is newer
- if version_cmp(TARBALLS[module][srpm], version) == 1:
- TARBALLS[module][srpm] = version
+ if version_cmp(module_srpm_tarballs[module][srpm], version) == 1:
+ module_srpm_tarballs[module][srpm] = version
else:
- TARBALLS[module][srpm] = version
+ module_srpm_tarballs[module][srpm] = version
- if srpm not in FILES:
- FILES[srpm] = set()
- FILES[srpm].add(filename)
+ if srpm not in srpm_files:
+ srpm_files[srpm] = set()
+ srpm_files[srpm].add(filename)
- self._packages = PACKAGES
- self.tarballs = TARBALLS
- self.files = FILES
+ self._packages = packages
+ self.tarballs = module_srpm_tarballs
+ self.files = srpm_files
@property
def packages(self):