mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-25 22:36:13 +01:00
- core.set_link_rev: return revision
- do_setlinkrev: print the revision which is stored in the 'rev' attribute (if rev is not None)
This commit is contained in:
parent
e945409bb8
commit
64224f9668
@ -2184,8 +2184,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
packages = meta_get_packagelist(apiurl, project)
|
packages = meta_get_packagelist(apiurl, project)
|
||||||
|
|
||||||
for p in packages:
|
for p in packages:
|
||||||
print 'setting revision to %s for package %s' % (rev, p)
|
rev = set_link_rev(apiurl, project, p, revision=rev, expand=expand, baserev=baserev)
|
||||||
set_link_rev(apiurl, project, p, revision=rev, expand=expand, baserev=baserev)
|
if rev is None:
|
||||||
|
print 'removed revision from link'
|
||||||
|
else:
|
||||||
|
print 'set revision to %s for package %s' % (rev, p)
|
||||||
|
|
||||||
|
|
||||||
def do_linktobranch(self, subcmd, opts, *args):
|
def do_linktobranch(self, subcmd, opts, *args):
|
||||||
|
@ -5467,6 +5467,7 @@ def set_link_rev(apiurl, project, package, revision='', expand=False, baserev=Fa
|
|||||||
|
|
||||||
l = ET.tostring(root)
|
l = ET.tostring(root)
|
||||||
http_PUT(url, data=l)
|
http_PUT(url, data=l)
|
||||||
|
return revision
|
||||||
|
|
||||||
|
|
||||||
def delete_dir(dir):
|
def delete_dir(dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user