aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Shablinsky2016-05-01 00:21:08 +0300
committerXu Cheng2016-05-01 14:28:24 +0800
commitf79edbc560b2a7b0cf6455dc2093081bfcde40c2 (patch)
tree1fb8364005bd577aee3b96eed756d91fe2c9b102
parent155960d991a8f12b1176a55f0da8de1cb6f1ee24 (diff)
downloadbrew-f79edbc560b2a7b0cf6455dc2093081bfcde40c2.tar.bz2
download_strategy: bazaar source_modified_time
-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 71f47a227..138413130 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -801,6 +801,10 @@ class BazaarDownloadStrategy < VCSDownloadStrategy
rm_r ".bzr"
end
+ def source_modified_time
+ Time.parse Utils.popen_read("bzr", "log", "-l", "1", "--timezone=utc", cached_location.to_s)[/^timestamp: (.+)$/, 1]
+ end
+
private
def cache_tag