No takers?
Kedar.
> -----Original Message-----
> Date: Mon, 4 May 2009 14:16:35 +0530
> From: Kedar Sovani <kedars(a)marvell.com>
> Subject: [PATCH] koji: Look at tail of build/root.log
> To: fedora-buildsys-list(a)redhat.com
> Message-ID: <20090504084635.GA4975(a)linux-dev.marvell.com>
> Content-Type: text/plain; charset=us-ascii
>
> A lot of times the purpose of looking at the build logs is to look at the
> error
> which usually appear at the end of the log. Provide a mechanism to look at
> the tail
> instead of downloading the entire log. (offset = -2000 is probably
> reasonable
> enough as a default?)
>
> Unsure if it applies to a wider usecase.
>
> Please consider for inclusion.
>
> Signed-Off-by: Kedar Sovani <kedars(a)marvell.com>
>
> --- ./www/kojiweb/taskinfo.chtml.orig 2009-04-27 11:41:35.000000000
> +0200
> +++ ./www/kojiweb/taskinfo.chtml 2009-05-03 10:06:55.000000000 +0200
> @@ -287,7 +287,11 @@
> <th>Output</th>
> <td>
> #for $filename in $output
> - <a
> href="getfile?taskID=$task.id&name=$urllib.quote($filename)">$filename</a>
> <br/>
> + <a
> href="getfile?taskID=$task.id&name=$urllib.quote($filename)">$filename</a>
> + #if $filename == 'build.log' or $filename == 'root.log'
> + (<a
> href="getfile?taskID=$task.id&name=$urllib.quote($filename)&offset=-
> 2000">tail</a>)
> + #end if
> + <br/>
> #end for
> #if $task.state not in ($koji.TASK_STATES.CLOSED,
> $koji.TASK_STATES.CANCELED, $koji.TASK_STATES.FAILED) and \
> $task.method in ('buildSRPMFromSCM', 'buildArch',
> 'createrepo')
>
>
>