mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix to support source repos
https://forum.virtualmin.com/t/software-package-repos-displaying-duplicates/128831?u=ilia
This commit is contained in:
@@ -465,7 +465,9 @@ foreach my $f ($sources_list_file, glob("$sources_list_dir/*")) {
|
||||
'url' => $2,
|
||||
'enabled' => !$1 };
|
||||
my @w = split(/\s+/, $4);
|
||||
$repo->{'name'} = join("/", @w);
|
||||
my $type =
|
||||
($l =~ /^(#*)\s*(deb-src)/) ? " ($2)" : "";
|
||||
$repo->{'name'} = join("/", @w).$type;
|
||||
$repo->{'id'} = $repo->{'url'}.$repo->{'name'};
|
||||
push(@rv, $repo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user