#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 $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 ''# $linkURL() 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. $util.formatTimeRSS($currentDate) #for $build in $builds $koji.BUILD_STATES[$build.state].lower(): $koji.buildLabel($build)#if $build.task then ', target: ' + $build.task.request[1] else ''# $weburl/buildinfo?buildID=$build.build_id #if $build.completion_time $util.formatTimeRSS($build.completion_time) #end if #if $build.state == $koji.BUILD_STATES['COMPLETE'] and $build.changelog <pre>$util.escapeHTML($koji.util.formatChangelog($build.changelog))</pre> #end if #end for