From fbb72b53a473e81efbf14a3c7886f077f0e3afb8 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 28 Jan 2023 09:51:32 +0000 Subject: Force timestamping=off when using wget to avoid conflict with --force-clobber As seen on discuss@ml.mageia.org, if the user has set timestamping=on in /etc/wgetrc, wget fails due to conflicting options. --- urpm/download.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index e09bb854..302ccc4f 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -346,6 +346,7 @@ sub sync_wget { "/usr/bin/wget", ($options->{'limit-rate'} ? "--limit-rate=$options->{'limit-rate'}" : @{[]}), ($options->{resume} ? "--continue" : "--force-clobber"), + "--no-timestamping", #- timestamping conflicts with --force-clobber ($options->{proxy} ? set_proxy({ type => "wget", proxy => $options->{proxy} }) : @{[]}), ($options->{retry} ? ('-t', $options->{retry}) : @{[]}), ($options->{callback} ? ("--progress=bar:force", "-o", "-") : -- cgit v1.2.1