Description of problem: I'm trying to remove a package using spacecmd and its not working Version-Release number of selected component (if applicable): root@spacewalk [0] rhn # rpm -qa|grep spacecmd spacecmd-2.3.20-1.el6.noarch How reproducible: # spacecmd softwarechannel_removepackages channel gcc-c++-4.4.7-4.el6.x86_64 INFO: Connected to https://localhost/rpc/api as admin ERROR: multiple repeat to make sure its no bash issue I also tried from within spacecmd # spacecmd -u admin Welcome to spacecmd, a command-line interface to Spacewalk. Type: 'help' for a list of commands 'help <cmd>' for command-specific help 'quit' to quit INFO: Connected to https://localhost/rpc/api as admin spacecmd {SSM:0}> spacecmd {SSM:0}> softwarechannel_removepackages channel gcc-c++-4.4.7-4.el6.x86_64 ERROR: multiple repeat I also tried various ways I could think of to escape the package name but without success Steps to Reproduce: 1. run spacecmd softwarechannel_removepackages channel gcc-c++-4.4.7-4.el6.x86_64 Actual results: ERROR: multiple repeat Expected results: delete Package Additional info:
There is probably some double escaping in code. # spacecmd softwarechannel_removepackages channel gcc-c\\+\\+-4.4.7-4.el6.x86_64 This should work.
repaired in commit f1d48f0702c010eca967d727eda3887d11270745 in spacewalk/master
This MULTILPE REPEAT error has been raised in due to that the function expects regexes as input. Actually here is no way to fix it by logical way. User must escape the regexp himself as in many tools which are using regexps.
Reverted in spacewalk.git 71aff902e6464d94dc7775c634a2139c156c945b.
This BZ closed some time during 2.5, 2.6 or 2.7. Adding to 2.7 tracking bug.
[root@sputnik ~]# spacecmd softwarechannel_removepackages tml-channel 'gcc-c\\+\\+-4.8.2-16.el7.x86_64' INFO: Connected to https://sputnik.brq.redhat.com/rpc/api as tlestach Packages -------- gcc-c++-4.8.2-16.el7.x86_64 Remove these packages [y/N]: y [root@sputnik ~]#