7-Zip may see only one of Payload or Payload~, don't assume both exist

This commit is contained in:
Timothy Sutton 2014-10-03 11:40:15 -04:00
parent 74b3d38cca
commit af7ec5ee38

View file

@ -273,7 +273,8 @@ when running the installer out of 'system32'." % output_dir)
for arc in [pkg_dl_path,
os.path.join(arc_workdir, 'Payload'),
os.path.join(arc_workdir, 'Payload~')]:
sevenzipExtract(arc)
if os.path.exists(arc):
sevenzipExtract(arc)
dmg2iso_path = getDmg2Img()
dmg_extract_cmd = [dmg2iso_path, '-v',