summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):