diff options
| author | Max Howell | 2009-06-03 19:19:23 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-03 19:19:23 +0100 |
| commit | 84ad47bc3c8029847e5c41ab4646a6b9455b370a (patch) | |
| tree | 347da2d8da398b08a7427eaeb1bfe40fd4813fe5 | |
| parent | 14424feab2d9eb9ee7407e8a6b09abae13c83c59 (diff) | |
| download | brew-84ad47bc3c8029847e5c41ab4646a6b9455b370a.tar.bz2 | |
Don't bail if prefix is invalid
Git Formula doesn't build anything from a formula, so allow this usage.
It feels dirty though :(
| -rw-r--r-- | Cellar/homebrew/brewkit.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index defdb02f0..ae6879e73 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -158,7 +158,6 @@ public tmp=`mktemp -dt #{File.basename @url}`.strip Dir.chdir tmp do Dir.chdir uncompress(tgz) do - prefix.mkpath yield self if caveats ohai "Caveats" @@ -185,6 +184,14 @@ public ohai 'Finishing up' + begin + prefix + rescue RuntimeError + # you can have packages that aren't for installing, see git + # this is a HACK though, and dirty, and not right + return + end + prefix.find do |path| if path==prefix #rubysucks next |
