Bug 428757
Summary: | document yum exit codes | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Jan Hutař <jhutar> |
Component: | yum | Assignee: | James Antill <james.antill> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 5.1 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-03-25 06:15:54 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
Jan Hutař
2008-01-14 23:21:50 UTC
Just run into another issue - while yum did what I wanted, it ended with 1: # yum -y install --disablerepo=repo011 --disablerepo=repo022 --downloadonly test --downloaddir=. ... Downloading Packages: (1/1): test-0.1-1.i386.rp 100% |=========================| 2.2 kB 00:00 # echo $? 1 Bad copy&paste: # yum -y install --disablerepo=repo011 --disablerepo=repo022 --downloadonly test --downloaddir=. ... Downloading Packages: (1/1): test-0.1-1.i386.rp 100% |=========================| 2.2 kB 00:00 exiting because --downloadonly specified # echo $? 1 And there is this code in /usr/lib/yum-plugins/downloadonly.py: def postdownload_hook(conduit): opts, commands = conduit.getCmdLine() if opts.dlonly: raise PluginYumExit('exiting because --downloadonly specified ') Right, that's how yum-downloadonly works ... it pretends something bad happened. In theory it could probably call sys.exit(), but this way guarantees any cleanup needed is done. |