Fix EXE file name on failed PKLITE/LZEXE

This commit is contained in:
RichardG867
2022-05-15 14:40:50 -03:00
parent 8937c49500
commit b4ff1273cf

View File

@@ -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: