summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index d7cb908c..bfe4139b 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -956,6 +956,8 @@ sub _sync_webfetch_raw {
my @l = map { urpm::file_from_local_url($_) } @$files;
eval { sync_file($options, @l) };
$urpm->{fatal}(10, $@) if $@;
+ } elsif ($proto eq 'rsync') {
+ sync_rsync($options, @$files);
} elsif (member($proto, 'ftp', 'http', 'https') || $options->{metalink}) {
my $preferred = preferred_downloader($urpm, $medium, \$options->{metalink});
@@ -973,8 +975,6 @@ sub _sync_webfetch_raw {
$sync->($options, splice(@l, 0, $n));
}
}
- } elsif ($proto eq 'rsync') {
- sync_rsync($options, @$files);
} elsif ($proto eq 'ssh') {
my @ssh_files = map { m!^ssh://([^/]*)(.*)! ? "$1:$2" : () } @$files;
sync_ssh($options, @ssh_files);