Bug 1404841 - [RFE] spacewalk-remove-channel accepts removing channels by pattern matching
Summary: [RFE] spacewalk-remove-channel accepts removing channels by pattern matching
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiří Dostál
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2016-12-14 19:27 UTC by Pavel Studeník
Modified: 2017-09-27 19:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-27 19:31:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2016-12-14 19:27:40 UTC
Description of problem:
I would like to remove more channels than one by only command spacewalk-remove-channel. For example I have many old Fedora's channels and I want to remove all fedora1* (fedora18, fedora17,...). Now, I need to write new API script or use cycle in bash for spacewalk-remove-channel.

I think that good way to use "Unix filename pattern matching", that accepts

* 	matches everything
? 	matches any single character
[seq] 	matches any character in seq
[!seq] 	matches any character not in seq

https://docs.python.org/2/library/fnmatch.html

Actual results:
>> spacewalk-remove-channel -a fedora1*

Expected results:
>> spacewalk-remove-channel -a fedora1*

Comment 1 Pavel Studeník 2016-12-14 19:30:19 UTC
I created pull request https://github.com/spacewalkproject/spacewalk/pull/496

Comment 2 Jiří Dostál 2017-03-24 10:45:44 UTC
PR accepted as 274178d98ed9a8b543ed5ab34336160d37d478bf in spacewalk master.

Comment 3 Eric Herget 2017-09-27 19:31:00 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27


Note You need to log in before you can comment on or make changes to this bug.