mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +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)
|
||||
if self.options.debug:
|
||||
print r
|
||||
|
||||
print 'A working copy of the branched package can be checked out with\n' \
|
||||
'osc checkout --expand-link home:%s:branches:%s %s' \
|
||||
% (conf.config['user'], prj, pkg)
|
||||
'osc checkout --expand-link %s %s' \
|
||||
% (r, pkg)
|
||||
|
||||
|
||||
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],
|
||||
query='cmd=branch')
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user