Bug 170287

Summary: yumdownloader doesn't reflect failures in its exit status
Product: [Fedora] Fedora Reporter: Göran Uddeborg <goeran>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: Christian.Iseli, extras-qa
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-12 16:11:51 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 Göran Uddeborg 2005-10-10 15:27:05 UTC
Description of problem:
When yumdownloader fails to download a package, it writes an error message, but
doesn't signal the failure in its exit status.

Version-Release number of selected component (if applicable):
yum-utils-0.2-2.fc4

How reproducible:
Every time

Steps to Reproduce:
1.yumdownloader --source evince-0.4.0-1.2
2.echo $?
  
Actual results:
$? is 0

Expected results:
$? should be 1, or something else not equal to 0

Additional info:
evince-0.4.0-1.2 is an update.  And the SRPM directory for updates is
(unfortunately) not "yum-enabled".  So the failure itself is expected.  But it
would make sense, and simplify scripts, if yumdownloader indicated this failure
in its exit status.

Comment 1 Christian Iseli 2007-01-17 23:22:20 UTC
FC3 and FC4 have now been EOL'd.

Please check the ticket against a current Fedora release, and either adjust the
release number, or close it if appropriate.

Thanks.

Your friendly BZ janitor :-)

Comment 2 Göran Uddeborg 2007-01-21 21:19:28 UTC
Still the same in FC6, yum-utils-1.0.1-1.fc6.

Comment 3 Christopher Brown 2007-04-19 21:21:00 UTC
I also see this in F7-devel as of today with --source option.

Comment 4 Tim Lauridsen 2008-03-12 16:11:51 UTC
i have added a non zero return code if there is nothing to download