Ensure some files are compied from each package

This commit is contained in:
Adam Stankiewicz
2021-09-09 12:42:18 +02:00
parent 7f98e949d4
commit b147123070
17 changed files with 861 additions and 134 deletions

View File

@@ -491,6 +491,7 @@ def extract(packages)
output = []
packages.map do |package|
copied_something = false
if !package["remote"]
next
end
@@ -516,14 +517,20 @@ def extract(packages)
if package["extract_in_after"] == true
target = "after/#{target}"
end
copied_something = true
copy_file(package["name"], "#{subtree}#{p}", target)
end
end
elsif File.exist?(subpath)
copied_something = true
copy_file(package["name"], subpath, subdir)
end
end
if !copied_something
raise StandardError.new("No files in: #{package["name"]}")
end
if repo == "vim/vim"
next
end