mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +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)
|
||||
|
||||
for p in packages:
|
||||
print 'setting revision to %s for package %s' % (rev, p)
|
||||
set_link_rev(apiurl, project, p, revision=rev, expand=expand, baserev=baserev)
|
||||
rev = 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):
|
||||
|
@ -5467,6 +5467,7 @@ def set_link_rev(apiurl, project, package, revision='', expand=False, baserev=Fa
|
||||
|
||||
l = ET.tostring(root)
|
||||
http_PUT(url, data=l)
|
||||
return revision
|
||||
|
||||
|
||||
def delete_dir(dir):
|
||||
|
Loading…
Reference in New Issue
Block a user