From cfd11a6f379b677daf64ea576dabbae775dc7031 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 8 Feb 2008 17:49:48 +0000 Subject: remove results occurences and update doc --- lib/Youri/Submit/Check/Rpmlint.pm | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lib') diff --git a/lib/Youri/Submit/Check/Rpmlint.pm b/lib/Youri/Submit/Check/Rpmlint.pm index 22479ee..95c31e4 100644 --- a/lib/Youri/Submit/Check/Rpmlint.pm +++ b/lib/Youri/Submit/Check/Rpmlint.pm @@ -7,8 +7,7 @@ Youri::Submit::Check::Rpmlint - Rpmlint-based check =head1 DESCRIPTION -This check plugin wraps rpmlint, and reject packages triggering results -declared as fatal. +This check plugin wraps rpmlint, and reject packages triggering rpmlint errors. =cut @@ -25,10 +24,6 @@ Specific parameters: =over -=item results $results - -List of rpmlint result id considered as fatal. - =item path $path Path to the rpmlint executable (default: /usr/bin/rpmlint) @@ -45,18 +40,13 @@ Specific rpmlint configuration. sub _init { my $self = shift; my %options = ( - results => undef, path => '/usr/bin/rpmlint', config => '', @_ ); - croak "no results to check" unless $options{results}; - croak "fatal should be an arrayref" unless ref $options{results} eq 'ARRAY'; - $self->{_config} = $options{config}; $self->{_path} = $options{path}; - $self->{_pattern} = '^(?:' . join('|', @{$options{results}}) . ')$'; } sub run { -- cgit v1.2.1