diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index a1e0ca5ba5ef5a872ff0e9180db40a457f5c3fe5..0de9bf8c203c461e4a56998d172c81396f78f2d3 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -1,4 +1,5 @@ require "utils/json" +require "rexml/document" class AbstractDownloadStrategy include FileUtils @@ -495,7 +496,8 @@ class SubversionDownloadStrategy < VCSDownloadStrategy end def source_modified_time - Time.parse Utils.popen_read("svn", "info", cached_location.to_s).strip[/^Last Changed Date: (.+)$/, 1] + xml = REXML::Document.new(Utils.popen_read("svn", "info", "--xml", cached_location.to_s)) + Time.parse REXML::XPath.first(xml, "//date/text()").to_s end private