mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
new osc.core.delete_files function
This commit is contained in:
@@ -2817,6 +2817,10 @@ def delete_project(apiurl, prj):
|
||||
u = makeurl(apiurl, ['source', prj])
|
||||
http_DELETE(u)
|
||||
|
||||
def delete_files(apiurl, prj, pac, files):
|
||||
for file in files:
|
||||
u = makeurl(apiurl, ['source', prj, pac, file], query={'comment': 'removed %s' % (file, )})
|
||||
http_DELETE(u)
|
||||
|
||||
def get_platforms(apiurl):
|
||||
f = http_GET(makeurl(apiurl, ['platform']))
|
||||
|
Reference in New Issue
Block a user