Cater to download strategies not yielding a file
Closes Homebrew/homebrew#22580. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
84cbfb164e
commit
23c869afee
@ -611,7 +611,7 @@ class Formula
|
|||||||
|
|
||||||
def stage
|
def stage
|
||||||
fetched = fetch
|
fetched = fetch
|
||||||
verify_download_integrity(fetched) if fetched.file?
|
verify_download_integrity(fetched) if fetched.respond_to?(:file?) and fetched.file?
|
||||||
mktemp do
|
mktemp do
|
||||||
downloader.stage
|
downloader.stage
|
||||||
# Set path after the downloader changes the working folder.
|
# Set path after the downloader changes the working folder.
|
||||||
|
|||||||
@ -25,7 +25,7 @@ class Resource
|
|||||||
# A target or a block must be given, but not both
|
# A target or a block must be given, but not both
|
||||||
def stage(target=nil)
|
def stage(target=nil)
|
||||||
fetched = fetch
|
fetched = fetch
|
||||||
verify_download_integrity(fetched) if fetched.file?
|
verify_download_integrity(fetched) if fetched.respond_to?(:file?) and fetched.file?
|
||||||
mktemp do
|
mktemp do
|
||||||
@downloader.stage
|
@downloader.stage
|
||||||
if block_given?
|
if block_given?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user