cmd/info: handle casks with API.
Fall back to default location.
This commit is contained in:
parent
041545db2c
commit
4ef8632687
@ -254,6 +254,8 @@ module Homebrew
|
|||||||
when Formula
|
when Formula
|
||||||
f.path.relative_path_from(f.tap.path)
|
f.path.relative_path_from(f.tap.path)
|
||||||
when Cask::Cask
|
when Cask::Cask
|
||||||
|
return "#{f.tap.default_remote}/blob/HEAD/Casks/#{f.token}.rb" if f.sourcefile_path.blank?
|
||||||
|
|
||||||
f.sourcefile_path.relative_path_from(f.tap.path)
|
f.sourcefile_path.relative_path_from(f.tap.path)
|
||||||
end
|
end
|
||||||
github_remote_path(f.tap.remote, path)
|
github_remote_path(f.tap.remote, path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user