Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.

Commit 5263c7f

Browse files
committed
Tap.from_file_content: Fix for Linuxbrew
Return homebrew/dupes and homebrew/science rather than linuxbrew/dupes and linuxbrew/science
1 parent 2346031 commit 5263c7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Library/Homebrew/tab.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ def self.from_file_content(content, path)
5757
attributes["source"]["tap"] = "homebrew/core"
5858
end
5959

60+
case attributes["source"]["tap"]
61+
when "linuxbrew/dupes"
62+
attributes["source"]["tap"] = "homebrew/dupes"
63+
when "linuxbrew/science"
64+
attributes["source"]["tap"] = "homebrew/science"
65+
end
66+
6067
if attributes["source"]["spec"].nil?
6168
version = PkgVersion.parse path.to_s.split("/")[-2]
6269
if version.head?

0 commit comments

Comments
 (0)