show the summary and description of the srpm on the buildinfo page
This commit is contained in:
parent
66ee5cf49f
commit
70bf2ef8cd
2 changed files with 19 additions and 0 deletions
|
|
@ -23,6 +23,16 @@
|
|||
<tr>
|
||||
<th>Epoch</th><td>$build.epoch</td>
|
||||
</tr>
|
||||
#if $summary
|
||||
<tr>
|
||||
<th>Summary</th><td class="rpmheader"><pre>$util.escapeHTML($summary)</pre></td>
|
||||
</tr>
|
||||
#end if
|
||||
#if $description
|
||||
<tr>
|
||||
<th>Description</th><td class="rpmheader"><pre>$util.escapeHTML($description)</pre></td>
|
||||
</tr>
|
||||
#end if
|
||||
<tr>
|
||||
<th>Built by</th><td><a href="userinfo?userID=$build.owner_id">$build.owner_name</a></td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1015,6 +1015,15 @@ def buildinfo(req, buildID):
|
|||
else:
|
||||
rpmsByArch.setdefault(canon_arch, []).append(rpm)
|
||||
|
||||
if rpmsByArch.has_key('src'):
|
||||
srpm = rpmsByArch['src'][0]
|
||||
headers = server.getRPMHeaders(srpm['id'], 'summary', 'description')
|
||||
values['summary'] = headers.get('summary')
|
||||
values['description'] = headers.get('description')
|
||||
else:
|
||||
values['summary'] = None
|
||||
values['description'] = None
|
||||
|
||||
if build['task_id']:
|
||||
task = server.getTaskInfo(build['task_id'], request=True)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue