diff options
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 4 | ||||
-rw-r--r-- | lib/Youri/Upload/Check/SVN.pm | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index 53ced5b..e334f39 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -33,7 +33,7 @@ sub _init { install_root => '', test => 0, # test mode verbose => 0, # verbose mode - queue => '' + queue => '', @_ ); @@ -44,7 +44,7 @@ sub _init { } } print "Initializing repository for @{$self->{_arch}}\n"; - foreach my $v ('queue', 'noarch', 'install_root', 'upload_root', 'verbose') { + foreach my $v ('svn', 'queue', 'noarch', 'install_root', 'upload_root', 'verbose') { $self->{"_$v"} = $options{$v} } $self 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 { |