summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 058b2abd..63847ca7 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -773,8 +773,8 @@ sub _sync_webfetch_raw {
my $proto = urpm::protocol_from_url($_) or die N("unknown protocol defined for %s", $_);
push @{$files{$proto}}, $_;
}
- if ($files{removable} || $files{file}) {
- my @l = map { urpm::file_from_local_url($_) } @{$files{removable} || []}, @{$files{file} || []};
+ if ($files{file}) {
+ my @l = map { urpm::file_from_local_url($_) } @{$files{file} || []};
eval { sync_file($options, @l) };
$urpm->{fatal}(10, $@) if $@;
delete @files{qw(removable file)};