mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-24 05:46:13 +01:00
- minor cosmetic change for the last commit
This commit is contained in:
parent
596570cebb
commit
044ffdd62e
11
osc/core.py
11
osc/core.py
@ -3874,13 +3874,12 @@ def link_pac(src_project, src_package, dst_project, dst_package, force, rev='',
|
||||
|
||||
print 'Creating _link...',
|
||||
|
||||
# only include project if it is different
|
||||
src_project_snippet=" project=\"%s\"" % (src_project)
|
||||
if src_project == dst_project:
|
||||
src_project_snippet = ""
|
||||
project = ''
|
||||
if src_project != dst_project:
|
||||
project = 'project="%s"' % src_project
|
||||
|
||||
link_template = """\
|
||||
<link%s package="%s" %s %s>
|
||||
<link %s package="%s" %s %s>
|
||||
<patches>
|
||||
<!-- <apply name="patch" /> apply a patch on the source directory -->
|
||||
<!-- <topadd>%%define build_with_feature_x 1</topadd> add a line on the top (spec file only) -->
|
||||
@ -3888,7 +3887,7 @@ def link_pac(src_project, src_package, dst_project, dst_package, force, rev='',
|
||||
<!-- <delete>filename</delete> delete a file -->
|
||||
</patches>
|
||||
</link>
|
||||
""" % (src_project_snippet, src_package, rev, cicount)
|
||||
""" % (project, src_package, rev, cicount)
|
||||
|
||||
u = makeurl(apiurl, ['source', dst_project, dst_package, '_link'])
|
||||
http_PUT(u, data=link_template)
|
||||
|
Loading…
Reference in New Issue
Block a user