Unarchive get zipinfo on more OS/distros (#82873)

Not all implementations use -l as default for -Z on unzip
This commit is contained in:
Brian Coca
2024-03-21 08:43:08 -07:00
committed by GitHub
parent 2b1a5dd7a0
commit 481d8bdc1e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
bugfixes:
- unarchive modules now uses zipinfo options without relying on implementation defaults, making it more compatible with all OS/distributions.
+1 -1
View File
@@ -978,7 +978,7 @@ class TarZstdArchive(TgzArchive):
class ZipZArchive(ZipArchive):
def __init__(self, src, b_dest, file_args, module):
super(ZipZArchive, self).__init__(src, b_dest, file_args, module)
self.zipinfoflag = '-Z'
self.zipinfoflag = '-Zl'
self.binaries = (
('unzip', 'cmd_path'),
('unzip', 'zipinfo_cmd_path'),