aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Submit/Check/SVN.pm
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-10-17 16:04:49 +0000
committerFlorent Villard <warly@mandriva.com>2006-10-17 16:04:49 +0000
commit1dc5e5210b35dcce9f36c315fa7170ef874c27e3 (patch)
tree185b0b7ce17ef9ae97f6c2a0b77cc6406c0edb32 /lib/Youri/Submit/Check/SVN.pm
parent36dc49a0fee40e68284ac1422255787fb740fee3 (diff)
downloadmga-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/SVN.pm')
-rw-r--r--lib/Youri/Submit/Check/SVN.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Youri/Submit/Check/SVN.pm b/lib/Youri/Submit/Check/SVN.pm
index 0c92ce4..8295656 100644
--- a/lib/Youri/Submit/Check/SVN.pm
+++ b/lib/Youri/Submit/Check/SVN.pm
@@ -34,7 +34,7 @@ sub run {
if ($section =~ /\/(testing|backport)$/) {
# FIXME, right now ignore packages in SVN for testing and backports
# we need to find a clean way to handle them
- return 1
+ return
}
$package->is_source or return 1;
@@ -42,14 +42,11 @@ sub run {
my $srpm_name = $package->get_canonical_name;
if ($repository->package_in_svn($srpm_name)) {
if ($file !~ /(^|\/|$define->{prefix}_)@\d+:\Q$srpm_name/) {
- $self->{_error} = "package $srpm_name is in the SVN, the uploaded SRPM must look like @<svn rev>:$srpm_name-<version>-<release>.src.rpm (created with getsrpm-mdk $srpm_name)";
- return 0
+ return "package $srpm_name is in the SVN, the uploaded SRPM must look like @<svn rev>:$srpm_name-<version>-<release>.src.rpm (created with getsrpm-mdk $srpm_name)";
} else {
print "Package $file is correct\n";
- return 1
}
}
- 1
}
sub simple_prompt {