download task output directly from KojiFilesURL, rather than going through getfile

This commit is contained in:
Mike Bonnet 2011-04-05 15:57:20 -04:00
parent 89d6416ac7
commit 470bf43be7
2 changed files with 5 additions and 2 deletions

View file

@ -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):

View file

@ -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