Don't fail when cleaning if skip_clean_paths is empty
This commit is contained in:
parent
fe464c2e2b
commit
98081ce26a
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user