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,9 +393,10 @@ def os_installer_product_info(catalog, workdir, ignore_cache=False):
except ReplicationError as err: except ReplicationError as err:
print('Could not replicate %s: %s' % (dist_url, err), print('Could not replicate %s: %s' % (dist_url, err),
file=sys.stderr) file=sys.stderr)
dist_info = parse_dist(dist_path) else:
product_info[product_key]['DistributionPath'] = dist_path dist_info = parse_dist(dist_path)
product_info[product_key].update(dist_info) product_info[product_key]['DistributionPath'] = dist_path
product_info[product_key].update(dist_info)
return product_info return product_info