|
|
@ -37,12 +37,18 @@ for entry in output:
|
|
|
|
if 'variations' not in template:
|
|
|
|
if 'variations' not in template:
|
|
|
|
print("Non unique id in source catalog but no variations!")
|
|
|
|
print("Non unique id in source catalog but no variations!")
|
|
|
|
sys.exit(1)
|
|
|
|
sys.exit(1)
|
|
|
|
for k, variation in template['variations'].items():
|
|
|
|
for variation in template['variations'].values():
|
|
|
|
variation['size'] = int(opts.size)
|
|
|
|
variation['size'] = int(opts.size)
|
|
|
|
entry.setdefault('variations', {}).update(template['variations'])
|
|
|
|
entry.setdefault('variations', {}).update(template['variations'])
|
|
|
|
break
|
|
|
|
break
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# No entry with this id found, so add a new one.
|
|
|
|
# No entry with this id found, so add a new one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if template['variations']:
|
|
|
|
|
|
|
|
for variation in template['variations'].values():
|
|
|
|
|
|
|
|
if variation['path'] == opts.squashfs:
|
|
|
|
|
|
|
|
variation['size'] == int(opts.size)
|
|
|
|
|
|
|
|
|
|
|
|
template['size'] = int(opts.size)
|
|
|
|
template['size'] = int(opts.size)
|
|
|
|
template['path'] = opts.squashfs
|
|
|
|
template['path'] = opts.squashfs
|
|
|
|
|
|
|
|
|
|
|
|