[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Build logs (was: Sourceful uploads)

On Tue, 15 Feb 2011 09:09:05 +0900, Charles Plessy wrote:

> > getbuildlog(1) from devscripts downloads (almost, if you ignore a
> > small header/footer) text-versions of build logs.
> it is exactly that header and footer that I was reffering to when I wrote
> “withouth HTML processing”.

Ok. It doesn't really hurt IMO, but that's just me.
> Would it be acceptable to serve the build logs as plain text files ? Would a
> patch be welcome ?

I looks rather easy to strip the HTML, e.g. with the one-line patch
below. I leave it to you if you want to submit it against devscripts


--- /usr/bin/getbuildlog    2011-02-09 08:44:23.000000000 +0100
+++ /tmp/getbuildlog    2011-02-15 17:41:51.000000000 +0100
@@ -127,6 +127,7 @@
    match=`echo $match | sed -e 's/\+/%2B/g'`
         wget -O "${PACKAGE}_${ver}_${arch}.log" "$BASE/$match&file=log"
+        sed -i -e '0,/<pre>/ d ; /<\/pre>/,$ d' "${PACKAGE}_${ver}_${arch}.log"
     rm -f $ALL_LOGS
 .''`.   http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Bob Dylan: Talkin' World War III Blues

Attachment: signature.asc
Description: Digital signature

Reply to: