Fixes file://.
parent
2eb87bdf25
commit
ae43eda669
|
@ -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
|
||||
|
|
Reference in New Issue