Skip to content

Commit

Permalink
Merge pull request #3171 from DimStar77/pcheck-fix-push
Browse files Browse the repository at this point in the history
pcheck: fix creation of submit requests
  • Loading branch information
DimStar77 authored Oct 31, 2024
2 parents a6db18b + b8f68ae commit dcb6998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc-pcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def create(self, project, package, target, message):
query = {'cmd': 'create'}
url = osc.core.makeurl(self.apiurl, ['request'], query=query)

data = '<request type="submit"><submit><source project="{project}" package="{package}" rev="{rev}"/>' \
'<target project="{target}" package="{package}"/></submit><state name="new"/><description>{message}</description>' \
data = '<request><action type="submit"><source project="{project}" package="{package}" rev="{rev}"/>' \
'<target project="{target}" package="{package}"/></action><state name="new"/><description>{message}</description>' \
'</request>'.format(project=project, package=package, target=target, rev=currev, message=message)
osc.core.http_POST(url, data=data)

0 comments on commit dcb6998

Please sign in to comment.