check_tags: correct backwards diff.

Issues added in a request show as removed and visa versa.
This commit is contained in:
Jimmy Berry 2017-02-09 21:40:59 -06:00
parent 1ab3f846a5
commit c1fde90c64
2 changed files with 7 additions and 7 deletions

View File

@ -78,13 +78,13 @@ by OBS on which this bot relies on.
def checkTagInRequest(self, req, a):
u = osc.core.makeurl(self.apiurl,
['source', a.tgt_project, a.tgt_package],
['source', a.src_project, a.src_package],
{'cmd': 'diff',
'onlyissues': '1',
'view': 'xml',
'opackage': a.src_package,
'oproject': a.src_project,
'orev': a.src_rev})
'opackage': a.tgt_package,
'oproject': a.tgt_project,
'rev': a.src_rev})
try:
f = osc.core.http_POST(u)
except (HTTPError, URLError):

View File

@ -163,12 +163,12 @@ Pico text editor while also offering a few enhancements.</description>
def _run_with_data(self, accept, exists_in_factory, issues_data):
# exists_in_factory: whether the package is exists in factory
httpretty.register_uri(httpretty.POST,
osc.core.makeurl(APIURL, ['source', "openSUSE:Factory", "nano"], {'cmd': 'diff',
osc.core.makeurl(APIURL, ['source', "editors", "nano"], { 'cmd': 'diff',
'onlyissues': '1',
'view': 'xml',
'opackage': 'nano',
'oproject': 'editors',
'orev': '25'}),
'oproject': 'openSUSE:Factory',
'rev': '25'}),
match_querystring=True,
body=issues_data)
httpretty.register_uri(httpretty.GET,