aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2006-11-21 15:37:55 +0000
committerMarcelo Leitner <mrl@mandriva.com>2006-11-21 15:37:55 +0000
commitf2a011f58eb46a0c693a73fc054b77f29594c364 (patch)
tree4121c90b7500d1c315dd4c5bd5bd8033d90993db
parent014927ec77f4f21165d28108775a20886e3dd877 (diff)
downloadmga-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.
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm10
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
}
}