diff options
| author | Vlad Shablinsky | 2016-05-01 00:21:08 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-05-01 14:28:24 +0800 |
| commit | f79edbc560b2a7b0cf6455dc2093081bfcde40c2 (patch) | |
| tree | 1fb8364005bd577aee3b96eed756d91fe2c9b102 /Library/Homebrew | |
| parent | 155960d991a8f12b1176a55f0da8de1cb6f1ee24 (diff) | |
| download | brew-f79edbc560b2a7b0cf6455dc2093081bfcde40c2.tar.bz2 | |
download_strategy: bazaar source_modified_time
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 4 |
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 |
