formula_installer.rb: Improve receipt check
Using `f.installed?` instead of `f.prefix.exist?` ensures something was created by the installation step before the install receipt is written.
This commit is contained in:
		
							parent
							
								
									17d83b735a
								
							
						
					
					
						commit
						e04e23492c
					
				| @ -131,7 +131,7 @@ class FormulaInstaller | |||||||
|       raise "Suspicious installation failure" unless $?.success? |       raise "Suspicious installation failure" unless $?.success? | ||||||
| 
 | 
 | ||||||
|       # Write an installation receipt (a Tab) to the prefix |       # Write an installation receipt (a Tab) to the prefix | ||||||
|       Tab.for_install(f, args).write if f.prefix.exist? |       Tab.for_install(f, args).write if f.installed? | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Charlie Sharpsteen
						Charlie Sharpsteen