Skip to content

Commit

Permalink
brew-which-update: fix wrong variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Nov 12, 2018
1 parent aad70c6 commit 5e41257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/brew-which-update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def update_formula_binaries(formula, prefix = nil)

binaries = binaries.to_a.sort

if missing_formula? f
if missing_formula? formula
@changes[:add] << name
elsif @exes[name] != binaries
@changes[:update] << name
Expand All @@ -131,7 +131,7 @@ def update_formula_binaries(formula, prefix = nil)
@exes[name] = binaries
end

# update the binaries of {f}, assuming it's installed
# update the binaries of {formula}, assuming it's installed
def update_installed_formula(formula)
update_formula_binaries formula
end
Expand All @@ -141,7 +141,7 @@ def update_bottled_formula(formula)
formula.bottle.fetch
# NOTE: we may want to just list the bottle content without unarchiving it
formula.bottle.resource.stage do
update_formula_binaries f, Dir["*"].first
update_formula_binaries formula, Dir["*"].first
end
end
end
Expand Down

0 comments on commit 5e41257

Please sign in to comment.