Skip to content
Snippets Groups Projects
Commit 84ad47bc authored by Max Howell's avatar Max Howell
Browse files

Don't bail if prefix is invalid

Git Formula doesn't build anything from a formula, so allow this usage.
It feels dirty though :(
parent 14424fea
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment