Bug 2280151 - wget2 always re-downdloads when using custom output filename
Summary: wget2 always re-downdloads when using custom output filename
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wget2
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact:
URL:
Whiteboard:
Depends On: 2328557
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-12 16:08 UTC by samoht0
Modified: 2024-12-05 02:23 UTC (History)
3 users (show)

Fixed In Version: wget2-2.2.0-1.fc42 wget2-2.2.0-1.fc40 wget2-2.2.0-1.fc41
Clone Of:
Environment:
Last Closed: 2024-12-03 08:45:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description samoht0 2024-05-12 16:08:00 UTC
Version: wget2-2.1.0-8.fc40

$ wget2 -c https://kojipkgs.fedoraproject.org//packages/wget2/2.1.0/8.fc40/src/wget2-2.1.0-8.fc40.src.rpm

wget2-2.1.0-8.fc40.s 100% [=================================================================>]    3.71M    3.28MB/s
                          [Files: 1  Bytes: 3.71M [1.34MB/s] Redirects: 0  Todo: 0  Errors: 0]

$ wget2 -c https://kojipkgs.fedoraproject.org//packages/wget2/2.1.0/8.fc40/src/wget2-2.1.0-8.fc40.src.rpm

0 files                0% [<=>                                                               ]       0          B/s
                          [Files: 0  Bytes: 0  [0 B/s] Redirects: 0  Todo: 0  Errors: 1      ]

No download, as already locally stored. OK.

With custom output file
=======================

$ wget2 -c -O wget.rpm  https://kojipkgs.fedoraproject.org//packages/wget2/2.1.0/8.fc40/src/wget2-2.1.0-8.fc40.src.rpm

wget.rpm             100% [=================================================================>]    3.71M    3.81MB/s
                          [Files: 1  Bytes: 3.71M [1.36MB/s] Redirects: 0  Todo: 0  Errors: 0]

$ wget2 -c -O wget.rpm  https://kojipkgs.fedoraproject.org//packages/wget2/2.1.0/8.fc40/src/wget2-2.1.0-8.fc40.src.rpm

wget.rpm             100% [=================================================================>]    3.71M    3.43MB/s
                          [Files: 0  Bytes: 3.71M [1.36MB/s] Redirects: 0  Todo: 0  Errors: 1]

File is re-downloaded and overwritten.

Expected: No download, as without -O option.

As a result, a partial downloaded file defined with -O is never continued.

Reproducible: Always

Comment 1 Michal Ruprich 2024-11-19 17:59:35 UTC
Fixed in the Upstream: https://github.com/rockdaboot/wget2/pull/357

I'll think about pushing a fix or rather waiting for a new version to come out to fix a couple of other bugs as well.

Comment 2 Fedora Update System 2024-12-03 08:42:54 UTC
FEDORA-2024-913d511a18 (wget2-2.2.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-913d511a18

Comment 3 Fedora Update System 2024-12-03 08:45:21 UTC
FEDORA-2024-913d511a18 (wget2-2.2.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2024-12-03 08:51:19 UTC
FEDORA-2024-7953b22fe9 (wget2-2.2.0-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7953b22fe9

Comment 5 Fedora Update System 2024-12-03 08:51:19 UTC
FEDORA-2024-e0acdb5078 (wget2-2.2.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e0acdb5078

Comment 6 Fedora Update System 2024-12-04 03:48:56 UTC
FEDORA-2024-e0acdb5078 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e0acdb5078`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e0acdb5078

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-12-04 04:15:47 UTC
FEDORA-2024-7953b22fe9 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7953b22fe9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7953b22fe9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-12-05 01:33:38 UTC
FEDORA-2024-7953b22fe9 (wget2-2.2.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-12-05 02:23:12 UTC
FEDORA-2024-e0acdb5078 (wget2-2.2.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.