Don't fail when cleaning if skip_clean_paths is empty

This commit is contained in:
Max Howell 2009-09-29 23:51:37 +01:00
parent fe464c2e2b
commit 98081ce26a

View File

@ -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