Red Hat Bugzilla – Bug 170287
yumdownloader doesn't reflect failures in its exit status
Last modified: 2008-03-15 14:22:41 EDT
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):
Steps to Reproduce:
1.yumdownloader --source evince-0.4.0-1.2
$? is 0
$? should be 1, or something else not equal to 0
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.
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.
Your friendly BZ janitor :-)
Still the same in FC6, yum-utils-1.0.1-1.fc6.
I also see this in F7-devel as of today with --source option.
i have added a non zero return code if there is nothing to download