1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 14:46:14 +01:00

Use the preinstall filename if the hdrmd5 is not available

This commit is contained in:
Michael Schroeder 2016-06-09 16:40:39 +02:00
parent 55da852a90
commit 95b6087c5b

View File

@ -291,6 +291,8 @@ def get_preinstall_image(apiurl, arch, cache_dir, img_info):
img_pkg = img_info.get('package')
img_file = img_info.get('filename')
img_hdrmd5 = img_info.get('hdrmd5')
if not img_hdrmd5:
img_hdrmd5 = img_file
cache_path = '%s/%s/%s/%s' % (cache_dir, img_project, img_repository, img_arch)
ifile_path = '%s/%s' % (cache_path, img_file)
ifile_path_part = '%s.part' % ifile_path