Obsolete
/
packaging
Archived
3
0
Fork 0

Fixes file://.

master
Luka Vandervelden 2019-11-05 14:08:33 +01:00
parent 2eb87bdf25
commit ae43eda669
1 changed files with 9 additions and 5 deletions

View File

@ -210,11 +210,14 @@ class Package::Recipe
def download
sources.each do |url|
next if url.scheme == "file"
filename = @context.sources_directory + "/" + url.filename
unless File.exists? filename
if url.scheme == "file"
@context.info "Copying '#{url.filename}'"
FileUtils.cp "#{recipe_directory}/#{url.filename}", filename
else
@context.info "Downloading '#{url.filename}'"
status = @context.run @context.sources_directory, "wget", [ url.to_s, "-O", filename ]
@ -223,6 +226,7 @@ class Package::Recipe
end
end
end
end
def extract
Dir.mkdir_p building_directory