aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Upload/Check/SVN.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Youri/Upload/Check/SVN.pm')
-rw-r--r--lib/Youri/Upload/Check/SVN.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Upload/Check/SVN.pm b/lib/Youri/Upload/Check/SVN.pm
index a1d66ea..6e7d57a 100644
--- a/lib/Youri/Upload/Check/SVN.pm
+++ b/lib/Youri/Upload/Check/SVN.pm
@@ -34,7 +34,7 @@ sub run {
my $file = $package->get_file_name;
my $srpm_name = $package->get_canonical_name;
if ($repository->package_in_svn($srpm_name)) {
- if ($file !~ /(^|\/)@\d+:\Q$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
} else {