add comment in project title
This commit is contained in:
parent
a66cb29c19
commit
07473aacb7
@ -60,7 +60,7 @@ sub fill_arrays($$$) {
|
||||
}
|
||||
for my $s (@$subpkgs) {
|
||||
if (defined $bin2src{$s}) {
|
||||
warn "bin $s defined twice\n";
|
||||
warn "bin $s defined twice $prj $source - $bin2src{$s}\n";
|
||||
}
|
||||
$bin2src{$s} = $source;
|
||||
}
|
||||
|
@ -31,7 +31,8 @@ def do_rqlink(self, subcmd, opts, *args):
|
||||
|
||||
opts.apiurl = self.get_api_url()
|
||||
|
||||
url = makeurl(opts.apiurl, ['request', args[0]])
|
||||
rqid = args[0]
|
||||
url = makeurl(opts.apiurl, ['request', rqid])
|
||||
f = http_GET(url)
|
||||
rq = ET.parse(f).getroot()
|
||||
act = rq.findall('action')[0]
|
||||
@ -50,6 +51,19 @@ def do_rqlink(self, subcmd, opts, *args):
|
||||
rev = ET.parse(f).getroot().attrib['srcmd5']
|
||||
print "osc linkpac -r %s %s/%s %s/%s" % (rev, prj, pkg, args[1], tpkg)
|
||||
link_pac(prj, pkg, args[1], tpkg, force=True, rev=rev)
|
||||
|
||||
url = makeurl(opts.apiurl, ['source', args[1], '_meta'])
|
||||
f = http_GET(url)
|
||||
root = ET.parse(f).getroot()
|
||||
title = root.find('title')
|
||||
text = title.text
|
||||
rqtext = "%s(%s)" % (pkg, rqid)
|
||||
if text is None:
|
||||
text = rqtext
|
||||
else:
|
||||
text = text + (", %s" % rqtext)
|
||||
title.text = text
|
||||
http_PUT(url, data=ET.tostring(root))
|
||||
#print pkg, prj, rev
|
||||
|
||||
#Local Variables:
|
||||
|
Loading…
x
Reference in New Issue
Block a user