Only check deb sources.list entries

The check isn't specific enough, it also catches deb-src entries and
would give a false impression of security in certain circumstances, or
lead to false negatives in case you have a deb-src entry for
buster/updates even though you have bullseye-security in just the next
line -- something that isn't that uncommon for developers.

Signed-off-by: Rhonda D'Vine <rhonda@deb.at>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Rhonda D'Vine 2021-07-09 09:24:41 +02:00 committed by Thomas Lamprecht
parent ba775794ac
commit b8436f0c6b

View File

@ -1010,7 +1010,7 @@ sub check_security_repo {
($line) = split(/#/, $line);
next if $line !~ m/^deb/; # is case sensitive
next if $line !~ m/^deb[[:space:]]/; # is case sensitive
my $suite;