From bbaac45e3e299e892b83a66beee1369803f9d1c1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 4 Jul 2010 14:17:03 -0700 Subject: [PATCH] "url" now has same features as "head" Specifically, it can accept all the VCS tag specs that head could, making it more useful for defining stable versions that come from VCS instead of tarballs. A new "SoftwareSpecification" class was added to implement this. This new class holds a "spec" for downloading a software package. It combines the url (or head url) with the "specs" [1] that head has been able to take. This allows both the stable (url) and unstable (head) specification for a software package to co-exist without stomping on each others "specs". [1] "specs" contain instructions on which branch/tag/revision/etc. to use from the source repository URL. --- Library/Homebrew/formula.rb | 160 ++++++++++++++++++++++-------------- 1 file changed, 100 insertions(+), 60 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 91320cf9a1..4c726eced3 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -6,26 +6,81 @@ class FormulaUnavailableError