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>2020-05-28 09:59:28 +0300
committerGitHub <noreply@github.com>2020-05-28 09:59:28 +0300
commit36255f35e9a8698c46ce20d06412e8bc16f821fc (patch)
tree28b0b28bf4fcdbd0c7c85610bff94a17bbe90be8
parente0e14ee64250a36b5cd61024a1e2cb9d1e951dd2 (diff)
support for files with @ symbol in their name
This fixes the issue with 64x64@2 Icon files and others that contain the "@" symbol in them.
-rwxr-xr-xapt-mirror3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-mirror b/apt-mirror
index d00d79b..fd97a46 100755
--- a/apt-mirror
+++ b/apt-mirror
@@ -485,7 +485,8 @@ sub sanitise_uri
{
my $uri = shift;
$uri =~ s[^(\w+)://][];
- $uri =~ s/^([^@]+)?@?// if $uri =~ /@/;
+ #$uri =~ s/^([^@]+)?@?// if $uri =~ /@/;
+ $uri =~ s/^([^@]+)?@?// if (split '/',$uri)[0] =~ /@/;
$uri =~ s&:\d+/&/&; # and port information
$uri =~ s/~/\%7E/g if get_variable("_tilde");
return $uri;