aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Youri/Submit/Check/Rpmlint.pm12
1 files changed, 1 insertions, 11 deletions
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 {