Save the channel on which the package can be found
This commit is contained in:
parent
f137ccb74c
commit
02a6b0e48b
1 changed files with 7 additions and 0 deletions
|
@ -161,6 +161,7 @@ def main():
|
||||||
|
|
||||||
for el in PATHS:
|
for el in PATHS:
|
||||||
|
|
||||||
|
channel = os.path.basename(el)
|
||||||
output = {'packages': {}, 'arches': []}
|
output = {'packages': {}, 'arches': []}
|
||||||
|
|
||||||
dbfiles = find_primary_sqlite(PATHS[el])
|
dbfiles = find_primary_sqlite(PATHS[el])
|
||||||
|
@ -189,6 +190,11 @@ def main():
|
||||||
pkg.arch)
|
pkg.arch)
|
||||||
if pkg.arch not in output['arches']:
|
if pkg.arch not in output['arches']:
|
||||||
output['arches'].append(pkg.arch)
|
output['arches'].append(pkg.arch)
|
||||||
|
if channel not in output['packages'][
|
||||||
|
pkg.basename]['channel']:
|
||||||
|
output['packages'][pkg.basename]['channel'].append(
|
||||||
|
channel)
|
||||||
|
|
||||||
# TODO: checks if the evr is more recent or not
|
# TODO: checks if the evr is more recent or not
|
||||||
# (and update if it is)
|
# (and update if it is)
|
||||||
else:
|
else:
|
||||||
|
@ -198,6 +204,7 @@ def main():
|
||||||
'epoch': pkg.epoch,
|
'epoch': pkg.epoch,
|
||||||
'version': pkg.version,
|
'version': pkg.version,
|
||||||
'release': pkg.release,
|
'release': pkg.release,
|
||||||
|
'channel': [channel]
|
||||||
}
|
}
|
||||||
cnt += 1
|
cnt += 1
|
||||||
print '%s packages in %s' % (cnt, cur_fold)
|
print '%s packages in %s' % (cnt, cur_fold)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue