aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorVlad Shablinsky2016-05-01 00:17:45 +0300
committerXu Cheng2016-05-01 14:28:24 +0800
commit155960d991a8f12b1176a55f0da8de1cb6f1ee24 (patch)
tree74964006a2dd5008cd7c01d083ca222982fc506b /Library/Homebrew
parentf54f27d6211de1b905ffaf88cd03e8f4fa7aad6d (diff)
downloadbrew-155960d991a8f12b1176a55f0da8de1cb6f1ee24.tar.bz2
download_strategy: mercurial source_modified_time
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 ef750cd22..71f47a227 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -765,6 +765,10 @@ class MercurialDownloadStrategy < VCSDownloadStrategy
end
end
+ def source_modified_time
+ Time.parse Utils.popen_read("hg", "tip", "--template", "{date|isodate}", "-R", cached_location.to_s)
+ end
+
private
def cache_tag