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

Not all implementations use -l as default for -Z on unzip

(cherry picked from commit 481d8bdc1e)
pull/83024/head
Brian Coca 2 years ago committed by GitHub
parent 416517c90e
commit e70203300a
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.

@ -969,7 +969,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