-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
Summary
The goal is this issue to extend method Repository.remove_content so it accepts also criteria parameter. Now it removes (unassociates) all content in repository of given type. We need to extend this so we can unassociate specific rpms, modulemd units and modulemd defaults units from repo. This will also require extending _do_unassociate methods in [fake,client]/client.py.
Issue Type
- Feature Request
Current behavior
Repository.remove_content removes all content of given type.
Desired behavior
Repository.remove_content:
- accepts criteria parameter and it needs to support matching:
- S/RPMS by exact match on filename field
- ModuleMd unit by exact match on all following fields 'name', 'context', 'version', 'stream', 'arch
- ModuleMd Defaults unit by exact match on all following fields: 'name', 'stream'
- it can used for unassociation of s/rpms, modulemd and modulemd defaults units from given repo
Use case
repo1.remove_content(criteria=Critera(...))
Metadata
Metadata
Assignees
Labels
No labels