1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 04:02:11 +01:00

fix linktobranch apiurl usage

This commit is contained in:
Adrian Schröter 2010-02-18 14:14:31 +01:00
parent 69333ac2e0
commit 57a8533ee8
3 changed files with 4 additions and 3 deletions

1
NEWS
View File

@ -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

View File

@ -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'],

View File

@ -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: