Let's try to include the channels' specific version in the JSON
This commit is contained in:
parent
5444604d2f
commit
c13e1ca274
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue