1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02: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:
Marcus Huewe 2011-11-17 21:33:57 +01:00
parent e945409bb8
commit 64224f9668
2 changed files with 6 additions and 2 deletions

View File

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

View File

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