MCPcopy Create free account
hub / github.com/apache/arrow / apt_build

Method apt_build

dev/tasks/linux-packages/package-task.rb:343–368  ·  view source on GitHub ↗
(console: false)

Source from the content-addressed store, hash-verified

341 end
342
343 def apt_build(console: false)
344 tmp_dir = "#{apt_dir}/tmp"
345 rm_rf(tmp_dir)
346 mkdir_p(tmp_dir)
347 cp(deb_archive_name,
348 File.join(tmp_dir, deb_archive_name))
349 apt_targets.each do |target|
350 apt_prepare_debian_dir(tmp_dir, target)
351 end
352
353 env_sh = "#{apt_dir}/env.sh"
354 File.open(env_sh, "w") do |file|
355 file.puts(<<-ENV)
356PACKAGE=#{@package}
357VERSION=#{@deb_upstream_version}
358 ENV
359 end
360
361 apt_targets.each do |target|
362 cd(apt_dir) do
363 distribution, version, architecture = split_target(target)
364 os = "#{distribution}-#{version}"
365 docker_run(os, architecture, console: console)
366 end
367 end
368 end
369
370 def define_apt_task
371 namespace :apt do

Callers

nothing calls this directly

Calls 4

docker_runFunction · 0.85
joinMethod · 0.45
eachMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected