summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 15:12:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 15:12:26 +0000
commit8e86785b214b40f1fb5bb36b11da7c9e26be0c57 (patch)
treedcb721f38b4a23e23961268579528304a3d31de7
parent4299adf857688fc24bf04fe152575a42679a9aa2 (diff)
downloadurpmi-8e86785b214b40f1fb5bb36b11da7c9e26be0c57.tar
urpmi-8e86785b214b40f1fb5bb36b11da7c9e26be0c57.tar.gz
urpmi-8e86785b214b40f1fb5bb36b11da7c9e26be0c57.tar.bz2
urpmi-8e86785b214b40f1fb5bb36b11da7c9e26be0c57.tar.xz
urpmi-8e86785b214b40f1fb5bb36b11da7c9e26be0c57.zip
- all tools
o fix broken ssh:// (regression introduced in 6.0)
-rw-r--r--NEWS2
-rw-r--r--urpm/download.pm6
2 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 97e97f46..47afa781 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- all tools
+ o fix broken ssh:// (regression introduced in 6.0)
- urpmi, urpme, urpmq:
o fix orphans handling: suggested packages must not be detected as orphans
- urpmi:
diff --git a/urpm/download.pm b/urpm/download.pm
index bf70fac6..cee61fa3 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -502,9 +502,9 @@ sub sync_rsync {
($limit_rate ? "--bwlimit=$limit_rate" : @{[]}),
($options->{quiet} ? qw(-q) : qw(--progress -v)),
($options->{compress} ? qw(-z) : @{[]}),
- ($options->{ssh} ? qq(-e $options->{ssh}) : @{[]}),
- "--timeout=$CONNECT_TIMEOUT",
- "--contimeout=$CONNECT_TIMEOUT",
+ ($options->{ssh} ? qq(-e $options->{ssh}) :
+ ("--timeout=$CONNECT_TIMEOUT",
+ "--contimeout=$CONNECT_TIMEOUT")),
qw(--partial --no-whole-file --no-motd --copy-links),
(defined $options->{'rsync-options'} ? split /\s+/, $options->{'rsync-options'} : ()),
"'$file' '$options->{dir}' 2>&1");