From bed2fa088be9569a32f93927e8c45cb900241a08 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 25 Aug 2012 13:39:53 -0700 Subject: Don't fail to cleanup redacted formula. --- Library/Homebrew/bottles.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 2d5fa6aa0..a060d671e 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -33,7 +33,7 @@ end def bottle_file_outdated? f, file filename = file.basename.to_s - return nil unless f.bottle and f.bottle.url \ + return nil unless f and f.bottle and f.bottle.url \ and (filename.match(bottle_regex) or filename.match(old_bottle_regex)) bottle_ext = filename.match(bottle_native_regex).captures.first rescue nil -- cgit v1.2.3