Bug 699469

Summary: yumdownloader returns 0 when it is unsuccessful downloading the package you asked it for
Product: [Fedora] Fedora Reporter: James M. Leddy <james.leddy>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: gborsuk, james.antill, ksrot, maxamillion, pbatkowski, pmatilai, tla, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 699470 (view as bug list) Environment:
Last Closed: 2014-05-28 09:50:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 699470    

Description James M. Leddy 2011-04-25 18:48:14 UTC
Description of problem:
I attempt to download a file using yumdownloader. It fails, but does not exit non-zero. This makes it difficult to use in a script.

$ yumdownloader -c /tmp/m-update-rpmsB8b3/yum.conf --disablerepo=kickstart --enablerepo=reposync --destdir=/tmp/m-up-rpmsB8b3/rpms -q krb5-debuginfo-1.8.2-3.el6_0.4.x86_64
http://fullejo.etc.test.gs.com/reposync/rhel-x86_64-server-6-debuginfo/getPackage/krb5-debuginfo-1.8.2-3.el6_0.4.x86_64.rpm: [Errno 12] Timeout on http://fullejo.etc.test.gs.com/reposync/rhel-x86_64-server-6-debuginfo/getPackage/krb5-debuginfo-1.8.2-3.el6_0.4.x86_64.rpm: (28, '')
Trying other mirror.
Could not download/verify pkg krb5-debuginfo-1.8.2-3.el6_0.4.x86_64: failure: rhel-x86_64-server-6-debuginfo/getPackage/krb5-debuginfo-1.8.2-3.el6_0.4.x86_64.rpm from reposync: [Errno 256] No more mirrors to try.

$ echo $?
0

$ rpm -q yum-utils
yum-utils-1.1.28-1.fc14.noarch

Comment 2 James Antill 2011-04-26 15:36:27 UTC
 Fixed upstream.

Comment 4 Fedora End Of Life 2013-04-03 17:35:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19