This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Can’t brew upgrade (with no arguments) #8576
Labels
Comments
Ahh... it appears pull request #7784 exposed a weird corner case in def formulae
require 'formula'
@formulae ||= downcased_unique_named.map{ |name| Formula.factory name }
raise FormulaUnspecifiedError if @formulae.empty?
@formulae
end @jacknagel @mxcl @MikeMcQuaid @adamv Should |
Allright, pushed a hotfix for this. I still think an empty list is a valid return value for |
wrigleyster
pushed a commit
to wrigleyster/homebrew
that referenced
this issue
Nov 17, 2011
The `filtered_args` method added to the `FormulaInstaller` makes a call `ARGV.formulae`. Unfortunately, `ARGV.formulae` will throw a `FormulaUnspecifiedError` instead of returning an empty list. This patch avoids the issue by checking `ARGV.named.empty?` before calling `ARGV.formulae`. Fixes Homebrew#8576.
etehtsea
pushed a commit
to etehtsea/homebrew
that referenced
this issue
Dec 24, 2011
The `filtered_args` method added to the `FormulaInstaller` makes a call `ARGV.formulae`. Unfortunately, `ARGV.formulae` will throw a `FormulaUnspecifiedError` instead of returning an empty list. This patch avoids the issue by checking `ARGV.named.empty?` before calling `ARGV.formulae`. Fixes Homebrew#8576.
etehtsea
pushed a commit
to etehtsea/homebrew
that referenced
this issue
Dec 27, 2011
The `filtered_args` method added to the `FormulaInstaller` makes a call `ARGV.formulae`. Unfortunately, `ARGV.formulae` will throw a `FormulaUnspecifiedError` instead of returning an empty list. This patch avoids the issue by checking `ARGV.named.empty?` before calling `ARGV.formulae`. Fixes Homebrew#8576.
snakeyroc3
pushed a commit
to snakeyroc3/homebrew
that referenced
this issue
Dec 17, 2012
The `filtered_args` method added to the `FormulaInstaller` makes a call `ARGV.formulae`. Unfortunately, `ARGV.formulae` will throw a `FormulaUnspecifiedError` instead of returning an empty list. This patch avoids the issue by checking `ARGV.named.empty?` before calling `ARGV.formulae`. Fixes Homebrew#8576.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I ran
brew upgrade
for the first time after updating to cfd9d50, I got this:brew upgrade lame
worked, but nowbrew upgrade
gives me this:Any ideas?
The text was updated successfully, but these errors were encountered: