Red Hat Bugzilla – Bug 1033116
wrong exit code (code of 0) when exit status of 5 expected.
Last modified: 2013-12-12 10:50:13 EST
Description of problem:
When running pkcon in the following situations. Command is executed but actual result is of none or nothing is needed to be done. Expected a return code of 5 - 'Nothing useful was done.' But a status of 0 is returned.
pkcon repo-enable a already enabled repo.
pkcon repo-disable a already disabled repo.
pkcon get-depends setup (no depends - no results)
pkcon get-requires mc (no requires - no results)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open terminal
2. Run one of the 4 commands (scenarios listed above)
Exit status code of 0
Exit status code of 5
(In reply to smatula from comment #0)
> pkcon repo-enable a already enabled repo.
> pkcon repo-disable a already disabled repo.
This probably should return exit code 5, although isn't a huge problem IMO.
> pkcon get-depends setup (no depends - no results)
> pkcon get-requires mc (no requires - no results)
These are tasks, and so we never perform an action. It's probably correct to say that by showing no results the return code is success, i.e. we showed the user what they wanted to see. This should return 0 on success always.
we're not going to get pkcon fixes for 7.0. yum is the recommended commandline client for software installation, anyway
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.