summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/download.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 9f9624d6..491460d9 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -522,7 +522,7 @@ sub sync_curl {
}
sub _curl_action {
- my ($cmd, $options, @l, $o_is_upload) = @_;
+ my ($cmd, $options, @l) = @_;
my ($buf, $file); $buf = '';
my $curl_pid = open(my $curl, "$cmd |");
@@ -541,8 +541,6 @@ sub _curl_action {
if (propagate_sync_callback($options, 'progress', $file, $percent, $total, $eta, $speed) eq 'canceled') {
kill 15, $curl_pid;
close $curl;
-
- die N("curl failed: upload canceled\n") if $o_is_upload;
die N("curl failed: download canceled\n");
}
#- this checks that download has actually started