aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorVlad Shablinsky2016-05-01 00:21:58 +0300
committerXu Cheng2016-05-01 14:28:24 +0800
commit6f1116c8e159bbeb718b0dd1e7bf5e8f6408f012 (patch)
tree860029d50a360bf9a1654b756737b69c0539c50b /Library/Homebrew
parentf79edbc560b2a7b0cf6455dc2093081bfcde40c2 (diff)
downloadbrew-6f1116c8e159bbeb718b0dd1e7bf5e8f6408f012.tar.bz2
download_strategy: fossil source_modified_time
Closes #171. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 138413130..a1e0ca5ba 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -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