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

Not all implementations use -l as default for -Z on unzip
pull/82530/head
Brian Coca 8 months ago committed by GitHub
parent 2b1a5dd7a0
commit 481d8bdc1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- unarchive modules now uses zipinfo options without relying on implementation defaults, making it more compatible with all OS/distributions.

@ -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'),

Loading…
Cancel
Save