mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-05 02:56:17 +01:00
make 'osc branch' show the actually created branch project name, not a guess one.
This commit is contained in:
parent
5000e4e148
commit
98090f8b09
@ -685,12 +685,10 @@ class Osc(cmdln.Cmdln):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
r = branch_pkg(conf.config['apiurl'], prj, pkg)
|
r = branch_pkg(conf.config['apiurl'], prj, pkg)
|
||||||
if self.options.debug:
|
|
||||||
print r
|
|
||||||
|
|
||||||
print 'A working copy of the branched package can be checked out with\n' \
|
print 'A working copy of the branched package can be checked out with\n' \
|
||||||
'osc checkout --expand-link home:%s:branches:%s %s' \
|
'osc checkout --expand-link %s %s' \
|
||||||
% (conf.config['user'], prj, pkg)
|
% (r, pkg)
|
||||||
|
|
||||||
|
|
||||||
def do_deletepac(self, subcmd, opts, project, *pkgs):
|
def do_deletepac(self, subcmd, opts, project, *pkgs):
|
||||||
|
@ -2341,7 +2341,11 @@ def branch_pkg(apiurl, src_project, src_package):
|
|||||||
['source', src_project, src_package],
|
['source', src_project, src_package],
|
||||||
query='cmd=branch')
|
query='cmd=branch')
|
||||||
f = http_POST(u)
|
f = http_POST(u)
|
||||||
return f.read()
|
r = f.read()
|
||||||
|
r = r.split('targetproject">')[1]
|
||||||
|
r = r.split('</data>')[0]
|
||||||
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def copy_pac(src_apiurl, src_project, src_package,
|
def copy_pac(src_apiurl, src_project, src_package,
|
||||||
|
Loading…
Reference in New Issue
Block a user