+++ This bug was initially created as a clone of Bug #830609 +++
Description of problem:
When I used spacewalk-create-channel, I was able to assign a human-readable name to cloned channels using e.g., --name "My cloned channel name"
I'd like to be able to do something like that with spacewalk-clone-by-date. Right now, you can only clone to a label, and that label becomes the channel name. It would be cool if we could add a third field to the -l argument, something like:
-l source_channel_label destination_channel_label "Friendly Name"
Version-Release number of selected component (if applicable):
It's not there in spacewalk-utils-1.2.1-16.el6sat.noarch
How reproducible:
See above
Steps to Reproduce:
See above
Actual results:
limited channel name options
Expected results:
Human readable channel names
Additional info:
One more commit required.
dyordano found a problem where if you were using an '=' in the new channels argument it would throw an error due to a bug in optparse:
spacewalk-clone-by-date --channel=test_ch clone-test_ch --username ${RHN_USER} --password ${RHN_PASS}
Usage: spacewalk-clone-by-date [options]
spacewalk-clone-by-date: error: --channels option does not take a value
Optparse is apparently not smart enough to handle explicit value setting for callback options. This commit works around the problem by transforming '--channel=test_ch' into '--channel test_ch'.
5b8eb30d77b7e8a61e031556da24bec8a833e718