summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/repo2json/files/rhel_to_json.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/repo2json/files/rhel_to_json.py b/roles/repo2json/files/rhel_to_json.py
index c5b975112..e3eaeb840 100644
--- a/roles/repo2json/files/rhel_to_json.py
+++ b/roles/repo2json/files/rhel_to_json.py
@@ -184,12 +184,15 @@ def main():
new = 0
for pkg in session.query(Package).all():
if pkg.basename in output['packages']:
+ # Update the list of arches the package has
if pkg.arch not in output['packages'][
pkg.basename]['arch']:
output['packages'][pkg.basename]['arch'].append(
pkg.arch)
+ # Adjust the gobal list of all arches in the RHEL
if pkg.arch not in output['arches']:
output['arches'].append(pkg.arch)
+ # Update the list of channels the package is in
if channel not in output['packages'][
pkg.basename]['channel']:
output['packages'][pkg.basename]['channel'].append(