mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 12:12:11 +01:00
fix linktobranch apiurl usage
This commit is contained in:
parent
69333ac2e0
commit
57a8533ee8
1
NEWS
1
NEWS
@ -6,6 +6,7 @@
|
||||
- osc remotebuildlog supports a buildlogurl
|
||||
- Allow --prefer-pkgs to parse repodata
|
||||
- new "osc build --no-service" option to skip source service update
|
||||
- fix linktobranch apiurl usage
|
||||
|
||||
0.125
|
||||
- add "osc pull" command to fetch and merge changes in the link target
|
||||
|
@ -1344,8 +1344,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
# execute
|
||||
link_to_branch(apiurl, project, package)
|
||||
if update_local_dir:
|
||||
pac = findpacs(wd)[0]
|
||||
pac.update()
|
||||
pac = Package(wd)
|
||||
pac.update(rev=pac.latest_rev())
|
||||
|
||||
|
||||
@cmdln.option('-C', '--cicount', choices=['add', 'copy', 'local'],
|
||||
|
@ -3117,7 +3117,7 @@ def link_to_branch(apiurl, project, package):
|
||||
convert a package with a _link + project.diff to a branch
|
||||
"""
|
||||
|
||||
if '_link' in meta_get_filelist(conf.config['apiurl'], project, package):
|
||||
if '_link' in meta_get_filelist(apiurl, project, package):
|
||||
u = makeurl(apiurl, ['source', project, package], 'cmd=linktobranch')
|
||||
http_POST(u)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user