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.
This commit is contained in:
		
							parent
							
								
									b059ffb952
								
							
						
					
					
						commit
						bb8d92c3cf
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user