Don't attempt to parse a dist we could not replicate! Addresses #19.

This commit is contained in:
Greg Neagle 2019-05-28 14:53:27 -07:00
parent 7f27257d96
commit 9d9bb51ab1

View File

@ -393,6 +393,7 @@ 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)
else:
dist_info = parse_dist(dist_path)
product_info[product_key]['DistributionPath'] = dist_path
product_info[product_key].update(dist_info)