mirror of
https://github.com/86Box/bios-tools.git
synced 2026-02-22 01:25:34 -07:00
Fix EXE file name on failed PKLITE/LZEXE
This commit is contained in:
@@ -2684,6 +2684,10 @@ class VMExtractor(ArchiveExtractor):
|
||||
|
||||
# Keep the unpacked file around (with a dummy
|
||||
# header file) for other extractors to process.
|
||||
try:
|
||||
shutil.move(exe_path, os.path.join(dest_dir, os.path.basename(file_path)))
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
open(os.path.join(dest_dir, ':header:'), 'wb').close()
|
||||
except:
|
||||
@@ -2763,6 +2767,10 @@ class VMExtractor(ArchiveExtractor):
|
||||
|
||||
# Keep the unpacked file around (with a dummy
|
||||
# header file) for other extractors to process.
|
||||
try:
|
||||
shutil.move(exe_path, os.path.join(dest_dir, os.path.basename(file_path)))
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
open(os.path.join(dest_dir, ':header:'), 'wb').close()
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user