aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-08 17:48:50 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-08 17:48:50 +0000
commit864e424e3924ee6e1c81aab815eb5270248beae9 (patch)
tree91d9325d324d9704273a9d6890f74679e5dc9a86
parenteff7ce1e4b1db2ad90ba4f3bdbb7c72e47fae355 (diff)
downloadmga-youri-submit-864e424e3924ee6e1c81aab815eb5270248beae9.tar
mga-youri-submit-864e424e3924ee6e1c81aab815eb5270248beae9.tar.gz
mga-youri-submit-864e424e3924ee6e1c81aab815eb5270248beae9.tar.bz2
mga-youri-submit-864e424e3924ee6e1c81aab815eb5270248beae9.tar.xz
mga-youri-submit-864e424e3924ee6e1c81aab815eb5270248beae9.zip
make all rpmlint errors fatal
-rw-r--r--lib/Youri/Submit/Check/Rpmlint.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Youri/Submit/Check/Rpmlint.pm b/lib/Youri/Submit/Check/Rpmlint.pm
index a58e283..22479ee 100644
--- a/lib/Youri/Submit/Check/Rpmlint.pm
+++ b/lib/Youri/Submit/Check/Rpmlint.pm
@@ -68,12 +68,10 @@ sub run {
my $command = "$self->{_path} -f $self->{_config} " . $package->as_file;
open(my $RPMLINT, "$command |") or die "Can't run $command: $!";
while (my $line = <$RPMLINT>) {
- $line =~ /^[EW]: \S+ (\S+)(.*)$/ # old rpmlint format
- || $line =~ /^\S+: [EW]: (\S+)(.*)$/ or next; # new rpmlint format
+ $line =~ /^E: \S+ (\S+)(.*)$/ # old rpmlint format
+ || $line =~ /^\S+: E: (\S+)(.*)$/ or next; # new rpmlint format
my ($id, $value) = ($1, $2);
- if ($id =~ /$self->{_pattern}/o) {
- push(@errors, "$id$value");
- }
+ push(@errors, "$id$value");
}
return @errors;