resource: restore fetch in stage

Fixes #7546.
This commit is contained in:
Bo Anderson 2020-05-12 03:02:07 +01:00
parent fa980e9c42
commit 58cecf38cf
2 changed files with 1 additions and 1 deletions

View File

@ -1160,7 +1160,6 @@ class Formula
# @private # @private
def brew def brew
@prefix_returns_versioned_prefix = true @prefix_returns_versioned_prefix = true
active_spec.fetch
stage do |staging| stage do |staging|
staging.retain! if Homebrew.args.keep_tmp? staging.retain! if Homebrew.args.keep_tmp?
prepare_patches prepare_patches

View File

@ -70,6 +70,7 @@ class Resource
def stage(target = nil, &block) def stage(target = nil, &block)
raise ArgumentError, "target directory or block is required" unless target || block raise ArgumentError, "target directory or block is required" unless target || block
fetch
prepare_patches prepare_patches
unpack(target, &block) unpack(target, &block)