diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-08-01 19:05:01 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-08-01 19:05:24 +0200 |
commit | c13e1ca2745ca96a387578dab17f2bae59d15ffc (patch) | |
tree | 36415fc8bff5dc17fbd57ac8ee299d53b92db246 /roles/repo2json/files/rhel_to_json.py | |
parent | 5444604d2f68a99d53652baccb98ca780184f442 (diff) | |
download | ansible-c13e1ca2745ca96a387578dab17f2bae59d15ffc.tar.gz ansible-c13e1ca2745ca96a387578dab17f2bae59d15ffc.tar.xz ansible-c13e1ca2745ca96a387578dab17f2bae59d15ffc.zip |
Let's try to include the channels' specific version in the JSON
Diffstat (limited to 'roles/repo2json/files/rhel_to_json.py')
-rw-r--r-- | roles/repo2json/files/rhel_to_json.py | 5 |
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) |