/usr/share/koji-web/scripts/recentbuilds.chtml is in koji-servers 1.10.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #import koji
#import koji.util
#from kojiweb import util
#def linkURL()
#set $query = []
#if $tag
#silent $query.append('tagID=%i' % $tag.id)
#end if
#if $user
#silent $query.append('userID=%i' % $user.id)
#end if
#if $package
#silent $query.append('packageID=%i' % $package.id)
#end if
#if $query
#echo '%s/%s?%s' % ($weburl, 'builds', '&'.join($query))
#else
#echo '%s/%s' % ($weburl, 'builds')
#end if
#end def
<rss version="2.0">
<channel>
<title>$siteName: recent builds#if $package then ' of package ' + $package.name else ''##if $tag then ' into tag ' + $tag.name else ''##if $user then ' by user ' + $user.name else ''#</title>
<link>$linkURL()</link>
<description>
A list of the most recent builds
#if $package
of package $package.name
#end if
#if $tag
into tag $tag.name
#end if
#if $user
by user $user.name
#end if
in the $siteName Build System. The list is sorted in reverse chronological order by build completion time.
</description>
<pubDate>$util.formatTimeRSS($currentDate)</pubDate>
#for $build in $builds
<item>
<title>$koji.BUILD_STATES[$build.state].lower(): $koji.buildLabel($build)#if $build.task then ', target: ' + $build.task.request[1] else ''#</title>
<link>$weburl/buildinfo?buildID=$build.build_id</link>
#if $build.completion_time
<pubDate>$util.formatTimeRSS($build.completion_time)</pubDate>
#end if
#if $build.state == $koji.BUILD_STATES['COMPLETE'] and $build.changelog
<description><pre>$util.escapeHTML($koji.util.formatChangelog($build.changelog))</pre></description>
#end if
</item>
#end for
</channel>
</rss>
|