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

Method generate_apt_ftp_archive_generate_conf

dev/release/binary-task.rb:1487–1519  ·  view source on GitHub ↗
(code_name, component)

Source from the content-addressed store, hash-verified

1485 end
1486
1487 def generate_apt_ftp_archive_generate_conf(code_name, component)
1488 conf = <<-CONF
1489Dir::ArchiveDir ".";
1490Dir::CacheDir ".";
1491TreeDefault::Directory "pool/#{code_name}/#{component}";
1492TreeDefault::SrcDirectory "pool/#{code_name}/#{component}";
1493Default::Packages::Extensions ".deb .ddeb";
1494Default::Packages::Compress ". gzip xz";
1495Default::Sources::Compress ". gzip xz";
1496Default::Contents::Compress "gzip";
1497 CONF
1498
1499 apt_architectures.each do |architecture|
1500 conf << <<-CONF
1501
1502BinDirectory "dists/#{code_name}/#{component}/binary-#{architecture}" {
1503 Packages "dists/#{code_name}/#{component}/binary-#{architecture}/Packages";
1504 Contents "dists/#{code_name}/#{component}/Contents-#{architecture}";
1505 SrcPackages "dists/#{code_name}/#{component}/source/Sources";
1506};
1507 CONF
1508 end
1509
1510 conf << <<-CONF
1511
1512Tree "dists/#{code_name}" {
1513 Sections "#{component}";
1514 Architectures "#{apt_architectures.join(" ")} source";
1515};
1516 CONF
1517
1518 conf
1519 end
1520
1521 def generate_apt_ftp_archive_release_conf(code_name, component)
1522 <<-CONF

Callers

nothing calls this directly

Calls 2

eachMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected