diff --git a/software/apt-lib.pl b/software/apt-lib.pl index 49827265b8..e25679e80e 100755 --- a/software/apt-lib.pl +++ b/software/apt-lib.pl @@ -458,7 +458,7 @@ sub list_package_repos my $lref = &read_file_lines($f, 1); my $lnum = 0; foreach my $l (@$lref) { - if ($l =~ /^(#*)\s*deb\s+((http|https)\S+)\s+(\S.*)/) { + if ($l =~ /^(#*)\s*deb.*?((http|https)\S+)\s+(\S.*)/) { my $repo = { 'file' => $f, 'line' => $lnum, 'words' => \@w,