aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-06 12:29:15 -0500
committerJack Nagel2014-12-06 15:02:49 -0500
commitab4c768e4a6926dbf0584ca92da71c1eb0d3e05f (patch)
tree52002ab65d8fd921e3cd593db12015a07d1eab06 /Library
parent6cfc44c5a9361aff51d75ead644abbcb4e9130c2 (diff)
downloadhomebrew-ab4c768e4a6926dbf0584ca92da71c1eb0d3e05f.tar.bz2
Add repo_valid? to remaining VCS strategies
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 7482788ba..40d7940af 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -68,6 +68,10 @@ class VCSDownloadStrategy < AbstractDownloadStrategy
"#{name}--#{cache_tag}"
end
+ def repo_valid?
+ true
+ end
+
def extract_ref(specs)
key = REF_TYPES.find { |type| specs.key?(type) }
return key, specs[key]
@@ -609,6 +613,10 @@ class CVSDownloadStrategy < VCSDownloadStrategy
"cvs"
end
+ def repo_valid?
+ @clone.join("CVS").directory?
+ end
+
def split_url(in_url)
parts=in_url.sub(%r[^cvs://], '').split(/:/)
mod=parts.pop
@@ -752,6 +760,10 @@ class FossilDownloadStrategy < VCSDownloadStrategy
"fossil"
end
+ def repo_valid?
+ true
+ end
+
def fossilpath
@path ||= %W[
#{which("fossil")}