From 95b6087c5b118a7c985b04a3b0925fdc70ffb0b3 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 9 Jun 2016 16:40:39 +0200 Subject: [PATCH] Use the preinstall filename if the hdrmd5 is not available --- osc/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/build.py b/osc/build.py index 10fc79e0..683ea85b 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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