diff options
| author | Uladzislau Shablinski | 2016-04-29 19:06:37 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-04-30 00:06:37 +0800 |
| commit | 3ff1aa9fa3cb467a8fff912e780822a788303cff (patch) | |
| tree | f6c9b085cf539233626cbab155f75e7d40cdd8ce | |
| parent | 9378e46ffc2c17df4efc535744279ebfa28bcf30 (diff) | |
| download | brew-3ff1aa9fa3cb467a8fff912e780822a788303cff.tar.bz2 | |
download_strategy: add svn source_modified_time (#156)
| -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 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 |
