1
0
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:
Dr. Peter Poeml 2008-03-17 21:39:27 +00:00
parent 140a331c40
commit 8ce42e2dd9

View File

@ -2101,16 +2101,15 @@ def pretty_diff(apiurl,
old_project, old_package, old_revision,
new_project, new_package, new_revision):
query = []
query.append('cmd=diff')
query = {'cmd': 'diff'}
if old_project:
query.append('oproject=%s' % quote_plus(old_project))
query['oproject'] = old_project
if old_package:
query.append('opackage=%s' % quote_plus(old_package))
query['opackage'] = old_package
if old_revision:
query.append('orev=%s' % quote_plus(old_revision))
query['orev'] = old_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)