aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Submit/Check/Type.pm
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-10-16 16:26:42 +0000
committerFlorent Villard <warly@mandriva.com>2006-10-16 16:26:42 +0000
commitdb4080d6ec327d2f26b3c7d9395bfe71f210abf1 (patch)
treefd088c5b1805f1fe4c8bc574b07c08fe79b57271 /lib/Youri/Submit/Check/Type.pm
parent363a191019f34e2f78edd2a92cd02be004ee4fd2 (diff)
downloadmga-youri-submit-db4080d6ec327d2f26b3c7d9395bfe71f210abf1.tar
mga-youri-submit-db4080d6ec327d2f26b3c7d9395bfe71f210abf1.tar.gz
mga-youri-submit-db4080d6ec327d2f26b3c7d9395bfe71f210abf1.tar.bz2
mga-youri-submit-db4080d6ec327d2f26b3c7d9395bfe71f210abf1.tar.xz
mga-youri-submit-db4080d6ec327d2f26b3c7d9395bfe71f210abf1.zip
merging dev with upstream
Diffstat (limited to 'lib/Youri/Submit/Check/Type.pm')
-rw-r--r--lib/Youri/Submit/Check/Type.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Youri/Submit/Check/Type.pm b/lib/Youri/Submit/Check/Type.pm
index e03fa80..4bdb793 100644
--- a/lib/Youri/Submit/Check/Type.pm
+++ b/lib/Youri/Submit/Check/Type.pm
@@ -1,9 +1,9 @@
# $Id: /local/youri/soft/trunk/lib/Youri/Upload/Check/Tag.pm 1642 2006-03-29T06:49:43.840267Z guillaume $
-package Youri::Upload::Check::Type;
+package Youri::Submit::Check::Type;
=head1 NAME
-Youri::Upload::Check::Type - Type check
+Youri::Submit::Check::Type - Type check
=head1 DESCRIPTION
@@ -14,7 +14,7 @@ This check plugin rejects packages with incorrect type.
use warnings;
use strict;
use Carp;
-use base qw/Youri::Upload::Check/;
+use base qw/Youri::Submit::Check/;
sub _init {
my $self = shift;
@@ -33,13 +33,14 @@ sub run {
my ($self, $package, $repository, $target, $define) = @_;
croak "Not a class method" unless ref $self;
+ my @errors;
+
my $type = $package->get_type();
if ($type ne $self->{_type}) {
- $self->{_error} = "invalid type $type";
- return 0;
+ push(@errors, "invalid type $type");
}
- return 1;
+ return @errors;
}
=head1 COPYRIGHT AND LICENSE