diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-17 16:04:49 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-17 16:04:49 +0000 |
commit | 1dc5e5210b35dcce9f36c315fa7170ef874c27e3 (patch) | |
tree | 185b0b7ce17ef9ae97f6c2a0b77cc6406c0edb32 /lib/Youri/Submit/Check/Source.pm | |
parent | 36dc49a0fee40e68284ac1422255787fb740fee3 (diff) | |
download | mga-youri-submit-1dc5e5210b35dcce9f36c315fa7170ef874c27e3.tar mga-youri-submit-1dc5e5210b35dcce9f36c315fa7170ef874c27e3.tar.gz mga-youri-submit-1dc5e5210b35dcce9f36c315fa7170ef874c27e3.tar.bz2 mga-youri-submit-1dc5e5210b35dcce9f36c315fa7170ef874c27e3.tar.xz mga-youri-submit-1dc5e5210b35dcce9f36c315fa7170ef874c27e3.zip |
now checks must return the error message
Diffstat (limited to 'lib/Youri/Submit/Check/Source.pm')
-rw-r--r-- | lib/Youri/Submit/Check/Source.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Youri/Submit/Check/Source.pm b/lib/Youri/Submit/Check/Source.pm index 4fde7d0..962b709 100644 --- a/lib/Youri/Submit/Check/Source.pm +++ b/lib/Youri/Submit/Check/Source.pm @@ -27,13 +27,10 @@ sub _init { sub run { my ($self, $package, $repository, $target, $define) = @_; croak "Not a class method" unless ref $self; - my $file = $package->get_file(); + my $file = $package->as_file(); if (!$package->is_source()) { - print - $self->{_error} = "Package $file is not a source rpm"; - return 0 + return "Package $file is not a source rpm"; } - return 1; } =head1 COPYRIGHT AND LICENSE |