This file is indexed.

/usr/share/koji-web/scripts/taginfo.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
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#from kojiweb import util
#import pprint

#include "includes/header.chtml"

  <h4>Information for tag <a href="taginfo?tagID=$tag.id">$tag.name</a></h4>

  <table>
    #if $child and 'admin' in $perms
    <tr>
      <th colspan="2"><a href="tagparent?tagID=$child.id&parentID=$tag.id&action=add$util.authToken($self)">Add $tag.name as parent of $child.name</a></th>
    </tr>
    #end if
    <tr>
      <th>Name</th><td>$tag.name</td>
    </tr>
    <tr>
      <th>ID</th><td>$tag.id</td>
    </tr>
    <tr>
      <th>Arches</th><td>$tag.arches</td>
    </tr>
    <tr>
      <th>Locked</th><td class="$str(not $tag.locked).lower()">#if $tag.locked then 'yes' else 'no'#</td>
    </tr>
    <tr>
      <th>Permission</th><td>#if $tag.perm_id then $allPerms[$tag.perm_id] else 'none'#</td>
    </tr>
    #if $mavenEnabled
    <tr>
      <th>Maven Support?</th><td class="$str($tag.maven_support).lower()">#if $tag.maven_support then 'yes' else 'no'#</td>
    </tr>
    <tr>
      <th>Include All Maven Builds?</th><td class="$str($tag.maven_include_all).lower()">#if $tag.maven_include_all then 'yes' else 'no'#</td>
    </tr>
    #end if
    <tr>
      <th>Inheritance</th>
      <td class="tree">
        <span class="root">$tag.name</span>
        #set $numParents = $len($inheritance)
        #set $iter = 0
        #set $maxDepth = 0
        #set $TRUNC_DEPTH = 7
        <ul>
          #for $parent in $inheritance
          #set $iter += 1
          #set $nextDepth = ($iter < $numParents and $inheritance[$iter].currdepth or 1)
          #set $depth = $parent.currdepth
          #if $depth > $maxDepth
          #set $maxDepth = $depth
          #end if
          #if $depth == $TRUNC_DEPTH and not $all
          <li><span class="treeBranch"><span class="treeToggle treeLabel">...</span></span></li>
          <li class="hidden">
          #else if $len($tagsByChild[$parent.child_id]) > 1
          <li class="sibling">
          #else
          <li>
          #end if
          #silent $tagsByChild[$parent.child_id].pop()
            <span class="treeBranch">
              <span class="treeLabel">
                <a href="taginfo?tagID=$parent.parent_id">$parent.name</a>
                #if $depth == 1 and 'admin' in $perms
                <span class="treeLink">(<a href="tagparent?tagID=$tag.id&parentID=$parent.parent_id&action=edit$util.authToken($self)">edit</a>) (<a href="tagparent?tagID=$tag.id&parentID=$parent.parent_id&action=remove$util.authToken($self)">remove</a>)</span>
                #end if
              </span>
            </span>
           #if $nextDepth > $depth
          <ul>
          #else
          </li>
          #end if
          #while $nextDepth < $depth
          </ul>
          </li>
          #set $depth -= 1
          #end while
          #end for
        </ul>
      </td>
    </tr>
    #if $maxDepth >= $TRUNC_DEPTH
    <tr>
      <td colspan="2">
        #if $all
        <a href="taginfo?tagID=$tag.id$util.passthrough($self, 'inherited')">Show abbreviated tree</a>
        #else
        <a href="taginfo?tagID=$tag.id$util.passthrough($self, 'inherited')&all=1">Show full tree</a>
        #end if
      </td>
    </tr>
    #end if
    #if 'admin' in $perms
    <tr>
      <td colspan="2"><a href="tags?childID=$tag.id">Add parent</a></td>
    </tr>
    #end if
    #if $external_repos
    <tr>
      <th>External&nbsp;repos</th>
      <td>
	#for $external_repo in $external_repos
	<a href="externalrepoinfo?extrepoID=$external_repo.external_repo_id">$external_repo.external_repo_name</a>
	#if $external_repo.tag_id != $tag.id
	<span class="smaller">(inherited from <a href="taginfo?tagID=$external_repo.tag_id">$external_repo.tag_name</a>)</span>
	#end if
	<br/>
	#end for
      </td>
    </tr>
    #end if
    <tr>
      <th>Repo&nbsp;created</th><td>#if $repo then $util.formatTimeRSS($repo.creation_time) else ''#</td>
    </tr>
    <tr>
      <th>Packages</th>
      <td><a href="packages?tagID=$tag.id">$numPackages</a></td>
    </tr>
    <tr>
      <th>Builds</th>
      <td><a href="builds?tagID=$tag.id">$numBuilds</a></td>
    </tr>
    <tr>
      <th>Targets building from this tag</th>
      <td>
        #if $len($srcTargets)
        #for $target in $srcTargets
        <a href="buildtargetinfo?name=$target.name">$target.name</a><br/>
        #end for
        #else
        No build targets
        #end if
      </td>
    </tr>
    <tr>
      <th>Targets building to this tag</th>
      <td>
        #if $len($destTargets)
        #for $target in $destTargets
        <a href="buildtargetinfo?name=$target.name">$target.name</a><br/>
        #end for
        #else
        No build targets
        #end if
      </td>
    </tr>
    #if 'admin' in $perms
    <tr>
      <td colspan="2"><a href="tagedit?tagID=$tag.id$util.authToken($self)">Edit tag</a></td>
    </tr>
    <tr>
      <td colspan="2"><a href="tagdelete?tagID=$tag.id$util.authToken($self)">Delete tag</a></td>
    </tr>
    #end if
    #if $tag.get('extra')
    <tr>
        <th>Extra options:</th>
    </tr>
    #for $key in $tag['extra']
    <tr>
        <th>$key</th>
        <td>$pprint.pformat($tag['extra'][$key])</td>
    </tr>
    #end for
    #end if
  </table>

#include "includes/footer.chtml"