resource: tweak fetch_patches logic.
This commit is contained in:
parent
2ffb87cb03
commit
8e2718c74e
@ -86,12 +86,9 @@ class Resource
|
|||||||
end
|
end
|
||||||
|
|
||||||
def fetch_patches(skip_downloaded: false)
|
def fetch_patches(skip_downloaded: false)
|
||||||
patches.each do |p|
|
external_patches = patches.select(&:external?)
|
||||||
next unless p.external?
|
external_patches.reject!(&:downloaded?) if skip_downloaded
|
||||||
next if p.downloaded? && skip_downloaded
|
external_patches.each(&:fetch)
|
||||||
|
|
||||||
p.fetch
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def apply_patches
|
def apply_patches
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user