Skip to content

Commit

Permalink
Use the preinstall filename if the hdrmd5 is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jun 9, 2016
1 parent 55da852 commit 95b6087
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95b6087

Please sign in to comment.