summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Yves Chibon <pingou@pingoured.fr>2015-01-31 10:04:00 +0100
committerPierre-Yves Chibon <pingou@pingoured.fr>2015-02-02 09:56:26 +0100
commitdabbbbb3cf0354b8b4907c09788eeee50cad46df (patch)
tree2a9c348561f0312e4d60f7621144eeae5ad1b855
parent02a6b0e48bf4ee78ca37bf1bab5f50f9d6b6c55b (diff)
downloadansible-dabbbbb3cf0354b8b4907c09788eeee50cad46df.tar.gz
ansible-dabbbbb3cf0354b8b4907c09788eeee50cad46df.tar.xz
ansible-dabbbbb3cf0354b8b4907c09788eeee50cad46df.zip
Add some documentation about what's going on
-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(