From 7f0c3262feb3969a560dc724908b7bac6a2d1a75 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Wed, 23 Aug 2017 16:10:30 -0500 Subject: [PATCH] repo_checker.pl: ensure that parser does not bleed over to other sections. --- repo_checker.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/repo_checker.pl b/repo_checker.pl index 1936b0d7..59a01621 100644 --- a/repo_checker.pl +++ b/repo_checker.pl @@ -103,9 +103,10 @@ while () { chomp; next if (/^unknown line:.*Flx/); - if ( $_ =~ /^can't install (.*)-[^-]+-[^-]+:$/ ) { + if ($_ =~ /^[^ ]/) { $inc = 0; - + } + if ( $_ =~ /^can't install (.*)-[^-]+-[^-]+:$/ ) { if ( defined $targets{$1} ) { $inc = 1; $ret = 1; @@ -131,9 +132,10 @@ $inc = 0; while () { chomp; - if ( $_ =~ /^found conflict of (.*)-[^-]+-[^-]+ with (.*)-[^-]+-[^-]+:$/ ) { + if ($_ =~ /^[^ ]/) { $inc = 0; - + } + if ( $_ =~ /^found conflict of (.*)-[^-]+-[^-]+ with (.*)-[^-]+-[^-]+:$/ ) { if ( defined $targets{$1} || defined $targets{$2} ) { $inc = 1; $ret = 1;