aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-05-14 15:08:06 +0100
committerGitHub2017-05-14 15:08:06 +0100
commit25e9e658afad0c56c1b7be935a964b915dd72f0b (patch)
treeecf621b7340dd3a3b9ffd5687509730ab6e4620e /Library
parent9f1af01b2fd286e0d5dce4751ccaebf18bd070f0 (diff)
parent76f48d338e907073fe3bcc39858ff09bdb92aa18 (diff)
downloadbrew-25e9e658afad0c56c1b7be935a964b915dd72f0b.tar.bz2
Merge pull request #2616 from MikeMcQuaid/devel-opt-aliases
keg: skip opt versioned aliases for devel/head.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index d4b9c5d77..8733def27 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -468,7 +468,10 @@ class Keg
end
def aliases
- Formulary.from_rack(rack).aliases
+ formula = Formulary.from_rack(rack)
+ aliases = formula.aliases
+ return aliases if formula.stable?
+ aliases.reject { |a| a.include?("@") }
rescue FormulaUnavailableError
[]
end