obs_operator: provide origin/potentials handler.
This commit is contained in:
parent
6c931615c7
commit
ed20276100
@ -28,6 +28,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
'origin/history',
|
||||
'origin/list',
|
||||
'origin/package',
|
||||
'origin/potentials',
|
||||
'origin/report',
|
||||
]
|
||||
POST_PATHS = [
|
||||
@ -238,6 +239,13 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
command.append(args[1])
|
||||
return command
|
||||
|
||||
def handle_origin_potentials(self, args, query):
|
||||
command = ['osc', 'origin', '-p', args[0], 'potentials']
|
||||
self.command_format_add(command, query)
|
||||
if len(args) > 1:
|
||||
command.append(args[1])
|
||||
return command
|
||||
|
||||
def handle_origin_report(self, args, query):
|
||||
command = ['osc', 'origin', '-p', args[0], 'report']
|
||||
if 'force-refresh' in query:
|
||||
|
Loading…
x
Reference in New Issue
Block a user