aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2012-08-25 13:39:53 -0700
committerMike McQuaid2012-08-25 13:40:05 -0700
commitbed2fa088be9569a32f93927e8c45cb900241a08 (patch)
tree3c702ef8dce525f067348525b7ce5ea5eef97cc0 /Library/Homebrew
parent67f78074f9fe0dc9b00bc499e8f66c069c2ab35c (diff)
downloadbrew-bed2fa088be9569a32f93927e8c45cb900241a08.tar.bz2
Don't fail to cleanup redacted formula.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/bottles.rb2
1 files changed, 1 insertions, 1 deletions
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