Bug 681094

Summary: yumdownloader exits 0 if package couldn't be downloaded
Product: [Fedora] Fedora Reporter: Jon Stanley <jonstanley>
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: james.antill, maxamillion, pmatilai, tim.lauridsen, vmukhame
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: 2014-05-28 09:49:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jon Stanley 2011-03-01 04:53:38 UTC
Just to get this into a bug report from an IRC conversation :)

If a package exists in cached metadata, but it couldn't be downloaded from any mirror (or the baseurl not using mirrorlists), yumdownloader will exit with status 0. A simple reproducer is to set proxies to things that don't exist so that nothing can be downloaded.

$ yumdownloader kernel
Loaded plugins: auto-update-debuginfo, refresh-packagekit
Found 17 installed debuginfo package(s)
<strip repo enablement, not relevant>
http://mirror.hiwaay.net/pub/rpmfusion/free/fedora/releases/13/Everything/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - ""
Trying other mirror.
http://mirror.liberty.edu/pub/rpmfusion/free/fedora/releases/13/Everything/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - ""
Trying other mirror.
<much snippage>
Could not download/verify pkg kernel-2.6.34.7-66.fc13.x86_64: failure: kernel-2.6.34.7-66.fc13.x86_64.rpm from updates: [Errno 256] No more mirrors to try.
$ echo $?
0
$

Comment 1 Jon Stanley 2011-04-21 16:31:55 UTC
Same thing in F15:

<snip>
Could not download/verify pkg kernel-2.6.38.2-9.fc15.x86_64: failure: Packages/kernel-2.6.38.2-9.fc15.x86_64.rpm from fedora: [Errno 256] No more mirrors to try.
# echo $?
0
# rpm -q createrepo
createrepo-0.9.9-3.fc15.noarch
# rpm -q yum-utils yum
yum-utils-1.1.30-2.fc15.noarch
yum-3.2.29-4.fc15.noarch
#

Comment 2 Fedora End Of Life 2013-04-03 17:35:03 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