Skip to content

Commit

Permalink
Use 7z option to rename files during extraction instead of overwritin…
Browse files Browse the repository at this point in the history
…g them.
  • Loading branch information
wummel committed Nov 4, 2024
1 parent 6c9a398 commit 48fefd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Closes: GH bug #170
* Added support for WIM (windows image) archives with 7z.
* If the MIME database cannot detect the file type, check again with a lowercase filenanme extension.
* Use 7z option -aou to rename files when extracting instead of overwriting them.

3.0.2 (released 21.10.2024)
* When running in verbose mode (-vv), print mime and compression info.
Expand Down
2 changes: 1 addition & 1 deletion patoolib/programs/p7zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def extract_7z(
cmdlist.append(f'-p{password}')
elif not interactive:
cmdlist.append('-p-')
cmdlist.extend([f'-o{outdir}', '--', archive])
cmdlist.extend(['-aou', f'-o{outdir}', '--', archive])
return cmdlist


Expand Down

0 comments on commit 48fefd8

Please sign in to comment.