mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
- report valid error on "group" request actions for now
This commit is contained in:
parent
c78da6c496
commit
a8e7b6edd0
@ -2310,7 +2310,8 @@ class Action:
|
||||
'maintenance_release': ('src_project', 'src_package', 'src_rev', 'tgt_project', 'tgt_package', 'person_name'),
|
||||
'maintenance_incident': ('src_project', 'src_package', 'src_rev', 'tgt_project', 'tgt_releaseproject', 'person_name', 'opt_sourceupdate'),
|
||||
'delete': ('tgt_project', 'tgt_package', 'tgt_repository'),
|
||||
'change_devel': ('src_project', 'src_package', 'tgt_project', 'tgt_package')}
|
||||
'change_devel': ('src_project', 'src_package', 'tgt_project', 'tgt_package'),
|
||||
'group': ('grouped_id')}
|
||||
# attribute prefix to element name map (only needed for abbreviated attributes)
|
||||
prefix_to_elm = {'src': 'source', 'tgt': 'target', 'opt': 'options'}
|
||||
|
||||
@ -2544,6 +2545,11 @@ class Request:
|
||||
elif action.type == 'delete':
|
||||
d['source'] = ''
|
||||
d['target'] = prj_pkg_join(action.tgt_project, action.tgt_package, action.tgt_repository)
|
||||
elif action.type == 'group':
|
||||
# FIXME: dunno what makes sense to do with it.
|
||||
raise oscerr.APIError('Unknown action type %s\n' % action.type)
|
||||
else:
|
||||
raise oscerr.APIError('Unknown action type %s\n' % action.type)
|
||||
return d
|
||||
|
||||
def list_view(self):
|
||||
|
Loading…
Reference in New Issue
Block a user