Add unreleased to component list in tools/generate_di_list

This commit is contained in:
John Paul Adrian Glaubitz 2017-10-08 22:04:03 +02:00
parent 664ed6c3d1
commit b03cbd1904
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,7 @@ my $mirror_path = "$ENV{MIRROR}/dists/$ENV{DI_CODENAME}";
my @components = qw(main);
push @components, 'contrib' if $ENV{CONTRIB};
push @components, 'non-free' if $ENV{NONFREE};
push @components, 'unreleased' if $ENV{UNRELEASED};
push @components, 'local' if $ENV{LOCAL};
foreach my $arch (@ARCHES) {
@ -51,6 +52,10 @@ foreach my $arch (@ARCHES) {
for my $component ( @components ) {
my $pgz="$mirror_path/$component/debian-installer/binary-$arch/Packages.gz";
my $pxz="$mirror_path/$component/debian-installer/binary-$arch/Packages.xz";
if ( $component eq 'unreleased' and $ENV{UNRELEASED} ) {
$pgz="$ENV{MIRROR}/dists/unreleased/main/debian-installer/binary-$arch/Packages.gz";
$pxz="$ENV{MIRROR}/dists/unreleased/main/debian-installer/binary-$arch/Packages.xz";
}
if ( $component eq 'local' and $ENV{LOCALDEBS} ) {
$pgz="$ENV{LOCALDEBS}/dists/$ENV{DI_CODENAME}/local/debian-installer/binary-$arch/Packages.gz";
$pxz="$ENV{LOCALDEBS}/dists/$ENV{DI_CODENAME}/local/debian-installer/binary-$arch/Packages.xz";