diff options
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index 533a7b5..fd41ea4 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -356,12 +356,10 @@ sub package_in_svn { SVN::Client::get_username_provider()] ); - my $svn_entry = $ctx->ls("$self->{_svn}/", 'HEAD', 0); - foreach (keys %{$svn_entry}) { - if ($srpm_name eq $_) { - print "Package $_ is in the SVN\n"; - return 1 - } + my $svn_entry = $ctx->ls("$self->{_svn}/$srpm_name", 'HEAD', 0); + if ($svn_entry) { + print "Package $_ is in the SVN\n"; + return 1 } } |