mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
change osc.core.pretty_diff() to call makeurl() with a query dict
This commit is contained in:
parent
140a331c40
commit
8ce42e2dd9
11
osc/core.py
11
osc/core.py
@ -2101,16 +2101,15 @@ def pretty_diff(apiurl,
|
|||||||
old_project, old_package, old_revision,
|
old_project, old_package, old_revision,
|
||||||
new_project, new_package, new_revision):
|
new_project, new_package, new_revision):
|
||||||
|
|
||||||
query = []
|
query = {'cmd': 'diff'}
|
||||||
query.append('cmd=diff')
|
|
||||||
if old_project:
|
if old_project:
|
||||||
query.append('oproject=%s' % quote_plus(old_project))
|
query['oproject'] = old_project
|
||||||
if old_package:
|
if old_package:
|
||||||
query.append('opackage=%s' % quote_plus(old_package))
|
query['opackage'] = old_package
|
||||||
if old_revision:
|
if old_revision:
|
||||||
query.append('orev=%s' % quote_plus(old_revision))
|
query['orev'] = old_revision
|
||||||
if new_revision:
|
if new_revision:
|
||||||
query.append('rev=%s' % quote_plus(new_revision))
|
query['rev'] = new_revision
|
||||||
|
|
||||||
u = makeurl(apiurl, ['source', new_project, new_package], query=query)
|
u = makeurl(apiurl, ['source', new_project, new_package], query=query)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user