mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
download_strategy: fossil source_modified_time
Closes #171. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
f79edbc560
commit
6f1116c8e1
@ -838,6 +838,10 @@ class FossilDownloadStrategy < VCSDownloadStrategy
|
||||
safe_system(*args)
|
||||
end
|
||||
|
||||
def source_modified_time
|
||||
Time.parse Utils.popen_read("fossil", "info", "tip", "-R", cached_location.to_s)[/^uuid: +\h+ (.+)$/, 1]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def cache_tag
|
||||
|
Loading…
x
Reference in New Issue
Block a user