summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");