diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2006-11-21 15:37:55 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2006-11-21 15:37:55 +0000 |
commit | f2a011f58eb46a0c693a73fc054b77f29594c364 (patch) | |
tree | 4121c90b7500d1c315dd4c5bd5bd8033d90993db /lib | |
parent | 014927ec77f4f21165d28108775a20886e3dd877 (diff) | |
download | mga-youri-core-f2a011f58eb46a0c693a73fc054b77f29594c364.tar mga-youri-core-f2a011f58eb46a0c693a73fc054b77f29594c364.tar.gz mga-youri-core-f2a011f58eb46a0c693a73fc054b77f29594c364.tar.bz2 mga-youri-core-f2a011f58eb46a0c693a73fc054b77f29594c364.tar.xz mga-youri-core-f2a011f58eb46a0c693a73fc054b77f29594c364.zip |
- Improve svn check. Avoid listing entire cooker/ directory: it's a too heavy
operation. Instead, list only the wanted package directory, which is faster.
Diffstat (limited to 'lib')
-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 } } |