Skip to content

Commit

Permalink
bin/masterlist2mirmon: properly report URLs without leading "/" in list
Browse files Browse the repository at this point in the history
Otherwise /etc/mirmon/mirror.list gets generated with a missing "/" in
the URL (between server/site name and download path) if we don't use
'Grml-http: /grml/' but 'Grml-http: grml/' in Mirrors.masterlist

Fixes: 83b1fc5
Thanks: David Schmitt for the bugreport
  • Loading branch information
mika committed Jul 9, 2021
1 parent 83b1fc5 commit 25db0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/masterlist2mirmon
Expand Up @@ -29,9 +29,9 @@ push @mirrors, $data if $data;

foreach my $mirror (@mirrors) {
my ($c, $r) = split (/ +/, $mirror->{'country'});
printf ("%s http://%s%s\n", $c, $mirror->{'site'}, $mirror->{'grml-http'});
printf ("%s http://%s/%s\n", $c, $mirror->{'site'}, $mirror->{'grml-http'});
if ($mirror->{'grml-ftp'}) {
printf ("%s ftp://%s%s\n", $c, $mirror->{'site'}, $mirror->{'grml-ftp'});
printf ("%s ftp://%s/%s\n", $c, $mirror->{'site'}, $mirror->{'grml-ftp'});
}
if ($mirror->{'grml-rsync'}) {
printf ("%s rsync://%s/%s\n", $c, $mirror->{'site'}, $mirror->{'grml-rsync'});
Expand Down

0 comments on commit 25db0ed

Please sign in to comment.