Move tex to after, closes #650

This commit is contained in:
Adam Stankiewicz
2021-01-01 17:26:26 +01:00
parent 2ab0b0a56a
commit f3b646fd6f
6 changed files with 6 additions and 1 deletions

View File

@@ -517,7 +517,11 @@ def extract(packages)
globs.each do |glob|
Dir.glob("#{subdir}/#{glob}", base: subtree).each do |p|
next unless File.file?("#{subtree}#{p}")
copy_file(package["name"], "#{subtree}#{p}", p)
target = p
if package["extract_in_after"] == true
target = "after/#{target}"
end
copy_file(package["name"], "#{subtree}#{p}", target)
end
end
elsif File.exist?(subpath)