Possible to use custom UnpackStrategy (in custom DownloadStrategy)? #1717
Unanswered
danielbayley
asked this question in
Tap maintenance and brew development
Replies: 2 comments 2 replies
-
Tagging @Homebrew/brew for ideas |
Beta Was this translation helpful? Give feedback.
1 reply
-
@SMillerDev @MikeMcQuaid container type: :zip, password: "Pa55w0rd" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create a custom
PasswordUnzipCurlDownloadStrategy
based on< CurlDownloadStrategy
(or maybe evenNoUnzipCurlDownloadStrategy
) that I want tounzip
a zip archive that has a password… How can I achieve this?How exactly can I override the underlying
UnpackStrategy
, specifically to simply add"-P", password
arg
uments
to the array here?I can override the
CurlDownloadStrategy
methods inside myPasswordUnzipCurlDownloadStrategy
class
, but not sure if/how I can do the same with access to theUnpackStrategy
… Also overriding thestage
method doesn't seem to have any effect, andunzip -o
is called (and freezes due to the zip password) regardless. Even, using: :nounzip
doesn't prevent this!Beta Was this translation helpful? Give feedback.
All reactions