mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-22 21:16:16 +01:00
- fix patchinfo new creation call
This commit is contained in:
parent
89edcc32ec
commit
b3e1321ad6
@ -457,11 +457,19 @@ class Osc(cmdln.Cmdln):
|
|||||||
else:
|
else:
|
||||||
sys.exit('This command must be called in a checked out project or patchinfo package.')
|
sys.exit('This command must be called in a checked out project or patchinfo package.')
|
||||||
|
|
||||||
if opts.force or not patchinfo:
|
filelist = None
|
||||||
|
if patchinfo:
|
||||||
|
filelist = meta_get_filelist(apiurl, project, patchinfo)
|
||||||
|
|
||||||
|
if opts.force or not patchinfo or not '_patchinfo' in filelist:
|
||||||
print "Creating initial patchinfo..."
|
print "Creating initial patchinfo..."
|
||||||
query='cmd=createpatchinfo'
|
query='cmd=createpatchinfo'
|
||||||
|
if opts.force:
|
||||||
|
query += "&force=1"
|
||||||
if args and args[0]:
|
if args and args[0]:
|
||||||
query += "&name=" + args[0]
|
query += "&name=" + args[0]
|
||||||
|
elif patchinfo:
|
||||||
|
query += "&name=" + patchinfo
|
||||||
url = makeurl(apiurl, ['source', project], query=query)
|
url = makeurl(apiurl, ['source', project], query=query)
|
||||||
f = http_POST(url)
|
f = http_POST(url)
|
||||||
for p in meta_get_packagelist(apiurl, project):
|
for p in meta_get_packagelist(apiurl, project):
|
||||||
|
Loading…
Reference in New Issue
Block a user