Skip to content

Commit

Permalink
software_spec: no _or_later in bottle filenames.
Browse files Browse the repository at this point in the history
It's more useful to be able to "bless" an existing bottle to be used on
later OSs (e.g. where it cannot yet be built) than it is to have to
create a new, identical bottle just to have a different filename.
  • Loading branch information
MikeMcQuaid committed Nov 5, 2016
1 parent 3cef6a3 commit 1f6c26a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Library/Homebrew/extend/os/mac/utils/bottles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def find_altivec_tag(tag)

# Allows a bottle tag to specify a specific OS or later,
# so the same bottle can target multiple OSs.
# Not used in core, used in taps.
def find_or_later_tag(tag)
begin
tag_version = MacOS::Version.from_symbol(tag)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/software_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def self.create(formula, tag, rebuild)
def initialize(name, version, tag, rebuild)
@name = name
@version = version
@tag = tag
@tag = tag.to_s.gsub(/_or_later$/, "")
@rebuild = rebuild
end

Expand Down

0 comments on commit 1f6c26a

Please sign in to comment.