Ajout de apt-mirror et des patchs appliqués
This commit is contained in:
21
apt-mirror/patch-130
Normal file
21
apt-mirror/patch-130
Normal 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;
|
Reference in New Issue
Block a user