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:
authorStifler <Stifler6996@users.noreply.github.com>2022-05-21 07:07:23 +0300
committerGitHub <noreply@github.com>2022-05-21 07:07:23 +0300
commit11342d7b3516c3babadc3983375658c2181ce681 (patch)
treee83df90d1be13d1d309eb160c392bc2a7c191506
parentb57b154afb87e91a47d3e7de50e239de3351c11e (diff)
parentb140578a1da0b23119f5a75e11d21a4919924be6 (diff)
Merge pull request #24 from chutzimir/obsolete-i18n-index
Neither Debian nor Ubuntu mirrors host the "i18n/Index"
-rwxr-xr-xapt-mirror75
1 files changed, 0 insertions, 75 deletions
diff --git a/apt-mirror b/apt-mirror
index e873dcb..ad40158 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -633,81 +633,6 @@ foreach (@config_sources)
}
print "]\n\n";
-sub process_translation_index
-{
- # Extract all translation files from the dists/$DIST/$COMPONENT/i18n/Index
- # file. Fall back to parsing dists/$DIST/Release if i18n/Index is not found.
-
- my $dist_uri = remove_double_slashes(shift);
- my $component = shift;
- my ( $base_uri, $index_uri, $index_path, $line ) = '';
-
- $base_uri = $dist_uri . $component . "/i18n/";
- $index_uri = $base_uri . "Index";
- $index_path = get_variable("skel_path") . "/" . sanitise_uri($index_uri);
-
- unless ( open STREAM, "<$index_path" )
- {
- # No Index, nothing to process.
- return;
- }
-
- my $checksums = 0;
- while ( $line = <STREAM> )
- {
- chomp $line;
- if ($checksums)
- {
- if ( $line =~ /^ +(.*)$/ )
- {
- my @parts = split( / +/, $1 );
- if ( @parts == 3 )
- {
- my ( $sha1, $size, $filename ) = @parts;
- add_url_to_download( $base_uri . $filename, $size );
- }
- else
- {
- warn("Malformed checksum line \"$1\" in $index_uri");
- }
- }
- else
- {
- $checksums = 0;
- }
- }
- if ( not $checksums )
- {
- if ( $line eq "SHA256:" or $line eq "SHA1:" or $line eq "MD5Sum:" )
- {
- $checksums = 1;
- }
- }
- }
-
- close STREAM;
-}
-
-print "Processing translation indexes: [";
-
-foreach (@config_binaries)
-{
- my ( $arch, $uri, $distribution, @components ) = @{$_};
- print "T";
- if (@components)
- {
- $url = $uri . "/dists/" . $distribution . "/";
-
- my $component;
- foreach $component (@components)
- {
- process_translation_index( $url, $component );
- }
- }
-}
-
-print "]\n\n";
-
push( @index_urls, sort keys %urls_to_download );
download_urls( "metadata", sort keys %urls_to_download );