mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-15 01:56:17 +01:00
- small apiurl fixes
This commit is contained in:
parent
06603f3fcb
commit
a20e354d07
@ -1148,7 +1148,7 @@ class Osc(cmdln.Cmdln):
|
|||||||
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
|
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
|
||||||
rev = p.linkinfo.lsrcmd5
|
rev = p.linkinfo.lsrcmd5
|
||||||
elif p.islink() and p.isexpanded():
|
elif p.islink() and p.isexpanded():
|
||||||
rev = show_upstream_xsrcmd5(conf.config['apiurl'],
|
rev = show_upstream_xsrcmd5(p.apiurl,
|
||||||
p.prjname, p.name)
|
p.prjname, p.name)
|
||||||
|
|
||||||
p.update(rev)
|
p.update(rev)
|
||||||
|
@ -404,7 +404,7 @@ class Project:
|
|||||||
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
|
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
|
||||||
rev = p.linkinfo.lsrcmd5
|
rev = p.linkinfo.lsrcmd5
|
||||||
elif p.islink() and p.isexpanded():
|
elif p.islink() and p.isexpanded():
|
||||||
rev = show_upstream_xsrcmd5(conf.config['apiurl'],
|
rev = show_upstream_xsrcmd5(p.apiurl,
|
||||||
p.prjname, p.name)
|
p.prjname, p.name)
|
||||||
p.update(rev)
|
p.update(rev)
|
||||||
elif state == 'D':
|
elif state == 'D':
|
||||||
@ -2491,7 +2491,7 @@ def get_results(apiurl, prj, package):
|
|||||||
rmap['status'] += ': ' + statusnode.find('details').text
|
rmap['status'] += ': ' + statusnode.find('details').text
|
||||||
|
|
||||||
if rmap['status'] == 'failed':
|
if rmap['status'] == 'failed':
|
||||||
rmap['status'] += ': %s://%s' % (conf.config['scheme'], conf.config['apisrv']) + \
|
rmap['status'] += ': %s' % apiurl + \
|
||||||
'/result/%(prj)s/%(rep)s/%(pac)s/%(arch)s/log' % rmap
|
'/result/%(prj)s/%(rep)s/%(pac)s/%(arch)s/log' % rmap
|
||||||
|
|
||||||
r.append(result_line_templ % rmap)
|
r.append(result_line_templ % rmap)
|
||||||
|
Loading…
Reference in New Issue
Block a user