summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2023-01-28 09:51:32 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2023-01-28 09:56:24 +0000
commitfbb72b53a473e81efbf14a3c7886f077f0e3afb8 (patch)
treeead2007659923e6cb388b082bf9320f084a9c895 /urpm/download.pm
parent53ba9437f9772bd2e37c048882d94f3ab039de6c (diff)
downloadurpmi-fbb72b53a473e81efbf14a3c7886f077f0e3afb8.tar
urpmi-fbb72b53a473e81efbf14a3c7886f077f0e3afb8.tar.gz
urpmi-fbb72b53a473e81efbf14a3c7886f077f0e3afb8.tar.bz2
urpmi-fbb72b53a473e81efbf14a3c7886f077f0e3afb8.tar.xz
urpmi-fbb72b53a473e81efbf14a3c7886f077f0e3afb8.zip
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.
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm1
1 files changed, 1 insertions, 0 deletions
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", "-") :