Skip to content

Commit

Permalink
Fix wrong stage method being called.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Sep 4, 2024
1 parent 231ac72 commit 50ec42f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1254,12 +1254,12 @@ def fetch
formula.fetch_patches
formula.resources.each(&:fetch)
end
downloader.fetch
downloadable.downloader.fetch

self.class.fetched << formula
end

def downloader
def downloadable
if (bottle_path = formula.local_bottle_path)
Resource::Local.new(bottle_path)
elsif pour_bottle?
Expand Down Expand Up @@ -1324,7 +1324,7 @@ def pour
end

HOMEBREW_CELLAR.cd do
downloader.stage
downloadable.downloader.stage
end

Tab.clear_cache
Expand Down
4 changes: 1 addition & 3 deletions Library/Homebrew/software_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,7 @@ def skip_relocation?
@spec.skip_relocation?(tag: @tag)
end

def stage
resource.downloader.stage
end
def stage = resource.downloader.stage

def fetch_tab(timeout: nil, quiet: false)
return unless (resource = github_packages_manifest_resource)
Expand Down

0 comments on commit 50ec42f

Please sign in to comment.