Ajout de apt-mirror et des patchs appliqués

This commit is contained in:
root
2020-04-29 02:31:32 +02:00
parent 1a7578ef26
commit 6bf601f8f0
7 changed files with 4898 additions and 0 deletions

21
apt-mirror/patch-130 Normal file
View File

@ -0,0 +1,21 @@
--- /usr/bin/apt-mirror.old 2017-05-29 14:02:33.000000000 +0200
+++ /usr/bin/apt-mirror 2020-04-11 01:42:20.959628172 +0200
@@ -520,7 +520,7 @@
if ( @parts == 3 )
{
my ( $sha1, $size, $filename ) = @parts;
- if ( $filename =~ m{^$component/i18n/Translation-[^./]*\.bz2$} )
+ if ( $filename =~ m{^$component/i18n/Translation-[^./]*\.(gz|bz2|xz)$} )
{
add_url_to_download( $dist_uri . $filename, $size );
}
@@ -826,7 +826,8 @@
}
else
{ # Sources index
- foreach ( split( /\n/, $lines{"Files:"} ) )
+ # foreach ( split( /\n/, $lines{"Files:"} ) )
+ foreach ( split( /\n/, $lines{"Checksums-Sha256:"} ) )
{
next if $_ eq '';
my @file = split;