/usr/share/koji-web/scripts/fileinfo.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 55 56 57 58 59 60 61 62 63 64 | #from kojiweb import util
#import urllib
#import datetime
#include "includes/header.chtml"
#if $rpm
<h4>Information for file <a href="fileinfo?rpmID=$rpm.id&filename=$urllib.quote($file.name)">$file.name</a></h4>
#elif $archive
<h4>Information for file <a href="fileinfo?archiveID=$archive.id&filename=$urllib.quote($file.name)">$file.name</a></h4>
#end if
<table>
<tr>
<th>Name</th><td>$file.name</td>
</tr>
#if $rpm
<tr>
<th>Digest ($file.digest_algo)</th><td>$file.digest</td>
</tr>
#end if
<tr>
<th>Size</th><td>$file.size</td>
</tr>
#if $file.has_key('mtime') and $file.mtime
<tr>
<th>Modification time</th><td>$util.formatTimeLong($datetime.datetime.fromtimestamp($file.mtime))</td>
</tr>
#end if
#if $file.has_key('user') and $file.user
<tr>
<th>User</th><td>$file.user</td>
</tr>
#end if
#if $file.has_key('group') and $file.group
<tr>
<th>Group</th><td>$file.group</td>
</tr>
#end if
#if $file.has_key('mode') and $file.mode
<tr>
<th>Mode</th><td class="rpmheader">$util.formatMode($file.mode)</td>
</tr>
#end if
#if $rpm
<tr>
<th>Flags</th>
<td>
#for flag in $util.formatFileFlags($file.flags)
$flag<br/>
#end for
</td>
</tr>
<tr>
#set $epoch = ($rpm.epoch != None and $str($rpm.epoch) + ':' or '')
<th>RPM</th><td><a href="rpminfo?rpmID=$rpm.id">$rpm.name-$epoch$rpm.version-$rpm.release.${rpm.arch}.rpm</a></td>
</tr>
#elif $archive
<tr>
<th>Archive</th><td><a href="archiveinfo?archiveID=$archive.id">$archive.filename</a></td>
</tr>
#end if
</table>
#include "includes/footer.chtml"
|