Bug 854075

Summary: Download counter increments when there's a 404 error
Product: [Fedora] Fedora Reporter: Andrew Gunnerson <accounts+fedora>
Component: yumAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bbaude, ffesti, maxamillion, packaging-team, pratyush.a.sahay, pviktori, tim.lauridsen, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-05 08:00:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Gunnerson 2012-09-03 23:26:10 UTC
I just installed Rawhide and found that yum increases the counter when there's a 404 error (eg. when mirrors are syncing).

Here's a screenshot of what I mean: http://i.imgur.com/pEkkM.png There were two 404 errors and yum counted to 12/10.

I have yum version 3.4.3-42.fc18 installed.

Comment 1 Zdeněk Pavlas 2012-09-04 08:46:39 UTC
This is intentional, (12/10) means "12th attempt to fetch 10 files in total".  Not just 404s but any mirror failures result in "extra" attempt.  So does the case when a file is downloaded but checksum fails.  In this case the whole file is downloaded again, so +1.

But now I'm a bit less convinced this is the best way to implement this.

Comment 2 Andrew Gunnerson 2012-09-04 17:45:06 UTC
I see. In that case, would it be better to place that information in the transaction summary? Maybe under a heading "Failed to download:"?

Comment 3 Zdeněk Pavlas 2012-09-05 08:00:04 UTC
Fixed in rawhide- failed download/checksum does not increment the finished_files counter.

Comment 4 Zdeněk Pavlas 2012-09-27 10:26:45 UTC
*** Bug 860974 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2012-09-27 10:56:47 UTC
python-urlgrabber-3.9.1-21.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-urlgrabber-3.9.1-21.fc18

Comment 6 Zdeněk Pavlas 2012-10-01 09:31:02 UTC
*** Bug 859202 has been marked as a duplicate of this bug. ***

Comment 7 Zdeněk Pavlas 2012-10-01 09:32:22 UTC
*** Bug 861562 has been marked as a duplicate of this bug. ***