download task output directly from KojiFilesURL, rather than going through getfile
This commit is contained in:
parent
89d6416ac7
commit
470bf43be7
2 changed files with 5 additions and 2 deletions
|
|
@ -605,7 +605,10 @@ def taskinfo(req, taskID):
|
|||
values['perms'] = server.getUserPerms(req.currentUser['id'])
|
||||
else:
|
||||
values['perms'] = []
|
||||
|
||||
|
||||
topurl = req.get_options().get('KojiFilesURL', 'http://localhost/')
|
||||
values['pathinfo'] = koji.PathInfo(topdir=topurl)
|
||||
|
||||
return _genHTML(req, 'taskinfo.chtml')
|
||||
|
||||
def imageinfo(req, imageID):
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ ${excClass.__name__}: $cgi.escape($str($result))
|
|||
<th>Output</th>
|
||||
<td>
|
||||
#for $filename in $output
|
||||
<a href="getfile?taskID=$task.id&name=$urllib.quote($filename)">$filename</a>
|
||||
<a href="$pathinfo.task($task.id)/$urllib.quote($filename)">$filename</a>
|
||||
#if $filename.endswith('.log')
|
||||
(<a href="getfile?taskID=$task.id&name=$urllib.quote($filename)&offset=-4000">tail</a>)
|
||||
#end if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue