aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUladzislau Shablinski2016-04-29 19:06:37 +0300
committerXu Cheng2016-04-30 00:06:37 +0800
commit3ff1aa9fa3cb467a8fff912e780822a788303cff (patch)
treef6c9b085cf539233626cbab155f75e7d40cdd8ce
parent9378e46ffc2c17df4efc535744279ebfa28bcf30 (diff)
downloadbrew-3ff1aa9fa3cb467a8fff912e780822a788303cff.tar.bz2
download_strategy: add svn source_modified_time (#156)
-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 c3124feb6..ef750cd22 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -494,6 +494,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy
quiet_safe_system "svn", "export", "--force", cached_location, Dir.pwd
end
+ def source_modified_time
+ Time.parse Utils.popen_read("svn", "info", cached_location.to_s).strip[/^Last Changed Date: (.+)$/, 1]
+ end
+
private
def repo_url