summaryrefslogtreecommitdiffstats
path: root/roles/repo2json/files/rhel_to_json.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/repo2json/files/rhel_to_json.py')
-rw-r--r--roles/repo2json/files/rhel_to_json.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/repo2json/files/rhel_to_json.py b/roles/repo2json/files/rhel_to_json.py
index 7e81d9a69..bfe559e01 100644
--- a/roles/repo2json/files/rhel_to_json.py
+++ b/roles/repo2json/files/rhel_to_json.py
@@ -207,6 +207,8 @@ def main():
pkg.basename]['channel']:
output['packages'][pkg.basename]['channel'].append(
channel)
+ output['packages'][pkg.basename][
+ 'channels'][channel] = pkg.version
# TODO: checks if the evr is more recent or not
# (and update if it is)
@@ -217,7 +219,8 @@ def main():
'epoch': pkg.epoch,
'version': pkg.version,
'release': pkg.release,
- 'channel': [channel]
+ 'channel': [channel],
+ 'channels': {channel: pkg.version},
}
cnt += 1
print '%s packages in %s' % (cnt, cur_fold)