Let's try to include the channels' specific version in the JSON

This commit is contained in:
Pierre-Yves Chibon 2017-08-01 19:05:01 +02:00
parent 5444604d2f
commit c13e1ca274

View file

@ -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)