mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 09:46:00 +00:00
Don't attempt to parse a dist we could not replicate! Addresses #19.
This commit is contained in:
parent
7f27257d96
commit
9d9bb51ab1
@ -393,9 +393,10 @@ def os_installer_product_info(catalog, workdir, ignore_cache=False):
|
||||
except ReplicationError as err:
|
||||
print('Could not replicate %s: %s' % (dist_url, err),
|
||||
file=sys.stderr)
|
||||
dist_info = parse_dist(dist_path)
|
||||
product_info[product_key]['DistributionPath'] = dist_path
|
||||
product_info[product_key].update(dist_info)
|
||||
else:
|
||||
dist_info = parse_dist(dist_path)
|
||||
product_info[product_key]['DistributionPath'] = dist_path
|
||||
product_info[product_key].update(dist_info)
|
||||
|
||||
return product_info
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user