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

Method apt_targets

dev/release/binary-task.rb:1439–1454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437 end
1438
1439 def apt_targets
1440 env_apt_targets = (ENV["APT_TARGETS"] || "").split(",")
1441 if env_apt_targets.empty?
1442 available_apt_targets
1443 else
1444 available_apt_targets.select do |distribution, code_name, component|
1445 env_apt_targets.any? do |env_apt_target|
1446 if env_apt_target.include?("-")
1447 env_apt_target.start_with?("#{distribution}-#{code_name}")
1448 else
1449 env_apt_target == distribution
1450 end
1451 end
1452 end
1453 end
1454 end
1455
1456 def apt_distributions
1457 apt_targets.collect(&:first).uniq

Callers

nothing calls this directly

Calls 3

start_with?Method · 0.80
empty?Method · 0.45
selectMethod · 0.45

Tested by

no test coverage detected