download_strategy: bazaar source_modified_time

This commit is contained in:
Vlad Shablinsky 2016-05-01 00:21:08 +03:00 committed by Xu Cheng
parent 155960d991
commit f79edbc560

View File

@ -801,6 +801,10 @@ class BazaarDownloadStrategy < VCSDownloadStrategy
rm_r ".bzr" rm_r ".bzr"
end end
def source_modified_time
Time.parse Utils.popen_read("bzr", "log", "-l", "1", "--timezone=utc", cached_location.to_s)[/^timestamp: (.+)$/, 1]
end
private private
def cache_tag def cache_tag