Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Stifler6996/apt-mirror.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Georgiev <310867+chutzimir@users.noreply.github.com>2022-05-24 18:07:48 +0300
committerGeorgi Georgiev <310867+chutzimir@users.noreply.github.com>2022-05-25 02:32:25 +0300
commit6514286140ae3f585729aa273f356ab239d1726e (patch)
treec23f66f43aa6400cb2c7f65e5a6f90a83caaaec9
parentc581211a1269faf4baf12f7f3c516cdc11c9f1a5 (diff)
The debian network installer needs these files too
Steps to reproduce: virt-install --osinfo debianbullseye --memory 1024 --disk size=10 \ --location http://ftp.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/debian-installer/amd64/,kernel=linux,initrd=initrd.gz \ The netboot installer will try to: 1. Read the Release file under binary-$arch 2. Download the Packages file under the debian-installer/binary-$arch 3. Download the microdebs which were described in such Package files
-rwxr-xr-xapt-mirror6
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-mirror b/apt-mirror
index 0c52b0b..afe64e9 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -566,9 +566,9 @@ sub find_metadata_in_release
) or (
$filename =~ m{^${component_regex}/Contents-${arch_regex}${compressed_extension_regex}}
) or (
- $filename =~ m{^${component_regex}/binary-${arch_regex}/Packages${compressed_extension_regex}}
+ $filename =~ m{^${component_regex}/(?:debian-installer/)?binary-${arch_regex}/Packages${compressed_extension_regex}}
) or (
- $filename =~ m{^${component_regex}/binary-${arch_regex}/Release$} # Needed for netboot.
+ $filename =~ m{^${component_regex}/(?:debian-installer/)?binary-${arch_regex}/Release$}
) or (
$filename =~ m{^${component_regex}/cnf/Commands-${arch_regex}${compressed_extension_regex}}
) or (
@@ -803,6 +803,8 @@ foreach (@config_binaries)
{
process_index( $uri, "/dists/$distribution/$component/binary-$arch/Packages" );
process_index( $uri, "/dists/$distribution/$component/binary-all/Packages", 1 );
+ process_index( $uri, "/dists/$distribution/$component/debian-installer/binary-$arch/Packages", 1 );
+ process_index( $uri, "/dists/$distribution/$component/debian-installer/binary-all/Packages", 1 );
}
}
elsif ($distribution)