Merge pull request #4258 from MikeMcQuaid/update_head_version_path
Formula#update_head_version: fix PATH.
This commit is contained in:
commit
a674a972a5
@ -358,8 +358,16 @@ class Formula
|
|||||||
return unless head.downloader.is_a?(VCSDownloadStrategy)
|
return unless head.downloader.is_a?(VCSDownloadStrategy)
|
||||||
return unless head.downloader.cached_location.exist?
|
return unless head.downloader.cached_location.exist?
|
||||||
|
|
||||||
|
path = if ENV["HOMEBREW_ENV"]
|
||||||
|
ENV["PATH"]
|
||||||
|
else
|
||||||
|
ENV["HOMEBREW_PATH"]
|
||||||
|
end
|
||||||
|
|
||||||
|
with_env(PATH: path) do
|
||||||
head.version.update_commit(head.downloader.last_commit)
|
head.version.update_commit(head.downloader.last_commit)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# The {PkgVersion} for this formula with {version} and {#revision} information.
|
# The {PkgVersion} for this formula with {version} and {#revision} information.
|
||||||
def pkg_version
|
def pkg_version
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user