summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/download.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 78494081..52f33d24 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -454,6 +454,7 @@ sub sync_rsync {
sub sync_ssh {
-x "/usr/bin/ssh" or die N("ssh is missing\n");
my $options = shift(@_);
+ $options = { dir => $options } if !ref $options;
$options->{ssh} = 1;
sync_rsync($options, @_);
}