repo_checker.pl: ensure that parser does not bleed over to other sections.
This commit is contained in:
parent
55aeefacb4
commit
7f0c3262fe
@ -103,9 +103,10 @@ while (<INSTALL>) {
|
||||
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 (<CONFLICTS>) {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user