Red Hat Bugzilla – Bug 651790
rhn-channel should report error when adding/removing wrong channel
Last modified: 2016-07-03 20:55:36 EDT
backported to RHEL5.7 (svn.rhndev) as
r201760 | mmraka | 2011-03-15 15:43:19 +0100 (Tue, 15 Mar 2011) | 6 lines
651789 - fail if adding/removal of channels fail
print message to stderr in verbose mode
return non zero exit code
cherrypicked from ca2b95ea966d7a1f8efb56fd2569effed9e778d0
Small typo during cherrypicking. See https://bugzilla.redhat.com/show_bug.cgi?id=651858#c3
Fixed in rev. 202372.
Another indentation problem found.
Martine, this happend only against hosted. And there is nothing I can do about it, I get from hosted successful return code. It is reported as bug 670216.
Against Satellite it should work.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
When removing or adding a wrong channel, the rhn-channel utility incorrectly reported successfully completed operation. This has been fixed: rhn-channel now informs, that the wrong channel cannot be added or removed.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.