Add some documentation about what's going on

This commit is contained in:
Pierre-Yves Chibon 2015-01-31 10:04:00 +01:00
parent 02a6b0e48b
commit dabbbbb3cf

View file

@ -184,12 +184,15 @@ def main():
new = 0
for pkg in session.query(Package).all():
if pkg.basename in output['packages']:
# Update the list of arches the package has
if pkg.arch not in output['packages'][
pkg.basename]['arch']:
output['packages'][pkg.basename]['arch'].append(
pkg.arch)
# Adjust the gobal list of all arches in the RHEL
if pkg.arch not in output['arches']:
output['arches'].append(pkg.arch)
# Update the list of channels the package is in
if channel not in output['packages'][
pkg.basename]['channel']:
output['packages'][pkg.basename]['channel'].append(