From 98081ce26a048dcb9e1c4bed41ff926ad3eb09a5 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 29 Sep 2009 23:51:37 +0100 Subject: [PATCH] Don't fail when cleaning if skip_clean_paths is empty --- Library/Homebrew/formula.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 57db673ba7..39d8ee1205 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -372,7 +372,7 @@ private end end - attr_rw :url, :version, :homepage, :head, :deps, :skip_clean_paths, *CHECKSUM_TYPES + attr_rw :url, :version, :homepage, :head, :deps, *CHECKSUM_TYPES def depends_on name, *args @deps ||= [] @@ -402,6 +402,10 @@ private @skip_clean_paths << p.to_s unless @skip_clean_paths.include? p.to_s end end + + def skip_clean_paths + @skip_clean_paths or [] + end end end