Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Don't bail if prefix is invalid
Browse files Browse the repository at this point in the history
Git Formula doesn't build anything from a formula, so allow this usage.
It feels dirty though :(
  • Loading branch information
mxcl committed Jun 3, 2009
1 parent 14424fe commit 84ad47b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Cellar/homebrew/brewkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def brew
tmp=`mktemp -dt #{File.basename @url}`.strip
Dir.chdir tmp do
Dir.chdir uncompress(tgz) do
prefix.mkpath
yield self
if caveats
ohai "Caveats"
Expand All @@ -185,6 +184,14 @@ def brew

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
Expand Down

0 comments on commit 84ad47b

Please sign in to comment.