diff options
| author | Max Howell | 2012-03-22 10:32:46 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-23 00:16:08 +0000 |
| commit | bb8d92c3cf360a91688e943ceb5151366fe7af52 (patch) | |
| tree | 8d0e7f9c35d12d587dd8ed61825590dd90dfb446 /Library | |
| parent | b059ffb9525a6943c049441dabb79f916c5b0149 (diff) | |
| download | brew-bb8d92c3cf360a91688e943ceb5151366fe7af52.tar.bz2 | |
Check tapped before trying to untap
If the tap-formula wasn't symlinked for some reason, don't throw an exception—the job is already done.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/untap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb index e1529c288..148e96448 100644 --- a/Library/Homebrew/cmd/untap.rb +++ b/Library/Homebrew/cmd/untap.rb @@ -31,7 +31,7 @@ module Homebrew extend self bn = formula.basename.to_s pn = HOMEBREW_LIBRARY/"Formula/#{bn}" - if pn.symlink? and pn.realpath.to_s =~ %r[^#{tapd}] + if pn.symlink? and (!pn.exist? or pn.realpath.to_s =~ %r[^#{tapd}]) pn.delete gitignores.delete(bn) untapped += 1 |
