| 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 |
nothing calls this directly
no test coverage detected