Fix skip_clean :all to actually skip clean step
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
d85ff377f3
commit
2f3ce485f3
@ -172,7 +172,7 @@ class Formula
|
|||||||
# skip_clean [bin+"foo", lib+"bar"]
|
# skip_clean [bin+"foo", lib+"bar"]
|
||||||
# redefining skip_clean? in formulas is now deprecated
|
# redefining skip_clean? in formulas is now deprecated
|
||||||
def skip_clean? path
|
def skip_clean? path
|
||||||
return true if @skip_clean_all
|
return true if self.class.skip_clean_all?
|
||||||
to_check = path.relative_path_from(prefix).to_s
|
to_check = path.relative_path_from(prefix).to_s
|
||||||
self.class.skip_clean_paths.include? to_check
|
self.class.skip_clean_paths.include? to_check
|
||||||
end
|
end
|
||||||
@ -532,6 +532,10 @@ EOF
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def skip_clean_all?
|
||||||
|
@skip_clean_all
|
||||||
|
end
|
||||||
|
|
||||||
def skip_clean_paths
|
def skip_clean_paths
|
||||||
@skip_clean_paths or []
|
@skip_clean_paths or []
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user