download_strategy: fossil source_modified_time

Closes #171.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Vlad Shablinsky 2016-05-01 00:21:58 +03:00 committed by Xu Cheng
parent f79edbc560
commit 6f1116c8e1

View File

@ -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