Your message dated Tue, 03 Jun 2008 18:47:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#483169: fixed in devscripts 2.10.29
has caused the Debian Bug report #483169,
regarding [new] getbuildlog: download package build logs from auto-builders
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
483169: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=483169
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: devscripts
Version: 2.10.28
Severity: wishlist
Tags: patch

Hello,

I'd like to propose my getbuildlog script for inclusion in devscripts. It 
downloads package build logs from  Debian auto-builders (buildd.debian.org, 
buildd.debian-ports.org, and experimental.debian.net) that matches given 
version- and architecture-patterns. I've outlined my motivation for writing 
this script in:
  http://lists.debian.org/debian-mentors/2008/05/msg00404.html
I think this script could be useful for others too. The diff to the current 
SVN is attached.

Thanks,
-- 
Frank S. Thomas <[EMAIL PROTECTED]>           PGP public key ID: 0xDC426429
Debian Developer                            finger fst/[EMAIL PROTECTED]
Index: debian/control
===================================================================
--- debian/control	(revision 1456)
+++ debian/control	(working copy)
@@ -84,6 +84,7 @@
     debian/ or, if present, debian/patches [patchutils]
   - dscverify: verify the integrity of a Debian package from the
     .changes or .dsc files [gnupg, debian-keyring, libdigest-md5-perl]
+  - getbuildlog: download package build logs from Debian auto-builders [wget]
   - grep-excuses: grep the update_excuses.html file for your packages
     [libterm-size-perl, wget]
   - licensecheck: attempt to determine the license of source files
Index: po4a/devscripts-po4a.conf
===================================================================
--- po4a/devscripts-po4a.conf	(revision 1456)
+++ po4a/devscripts-po4a.conf	(working copy)
@@ -75,6 +75,8 @@
 	fr:fr/dpkg-genbuilddeps.fr.1 add_fr:add_fr/translator_man.add
 [type:man] ../scripts/dscverify.1 \
 	fr:fr/dscverify.fr.1 add_fr:add_fr/translator_man.add
+[type:man] ../scripts/getbuildlog.1 \
+	fr:fr/getbuildlog.fr.1 add_fr:add_fr/translator_man.add
 [type:man] ../scripts/grep-excuses.1 \
 	fr:fr/grep-excuses.fr.1 add_fr:add_fr/translator_man.add
 [type:pod] ../scripts/licensecheck.pl \
Index: scripts/getbuildlog.1
===================================================================
--- scripts/getbuildlog.1	(revision 0)
+++ scripts/getbuildlog.1	(revision 0)
@@ -0,0 +1,35 @@
+.TH GETBUILDLOG 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*-
+.SH NAME
+getbuildlog \- download build logs from Debian auto\-builders
+.SH SYNOPSIS
+\fBgetbuildlog\fR \fIpackage\fR
+[\fIversion\-pattern\fR]
+[\fIarchitecture\-pattern\fR]
+.SH DESCRIPTION
+\fBgetbuildlog\fR downloads build logs of \fIpackage\fR from Debian
+auto\-builders. It downloads build logs of all versions and for all
+architectures if \fIversion\-pattern\fR and \fIarchitecture\-pattern\fR are
+not specified or empty, otherwise only build logs whose versions match
+\fIversion-pattern\fR and build logs whose architectures match
+\fIarchitecture-pattern\fR will be downloaded. The version and architecture
+patterns are interpreted as extended regular expressions as described in
+\fBgrep\fR(1).
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show usage information and examples.
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Show version and copyright information.
+.SH EXAMPLES
+.TP
+getbuildlog hello 2\\.2\-1 amd64
+Download amd64 build log for hello version 2.2\-1.
+.TP
+getbuildlog glibc "" mips.*
+Download mips(el) build logs of all glibc versions.
+.TP
+getbuildlog wesnoth .*bpo.*
+Download all build logs of backported wesnoth versions.
+.SH AUTHOR
+Written by Frank S. Thomas <[EMAIL PROTECTED]>.
Index: scripts/getbuildlog.sh
===================================================================
--- scripts/getbuildlog.sh	(revision 0)
+++ scripts/getbuildlog.sh	(revision 0)
@@ -0,0 +1,95 @@
+#!/bin/sh
+#
+# getbuildlog: download package build logs from Debian auto-builders
+#
+# Copyright © 2008 Frank S. Thomas <[EMAIL PROTECTED]>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+set -e
+
+PROGNAME=`basename $0`
+
+usage() {
+    cat <<EOT
+Usage: $PROGNAME <package> [<version-pattern>] [<architecture-pattern>]
+  Downloads build logs of <package> from Debian auto-builders.
+  If <version-pattern> or <architecture-pattern> are given, only build logs
+  whose versions and architectures, respectively, matches the given patterns
+  are downloaded.
+Options:
+  -h, --help        Show this help message.
+  -V, --version     Show version and copyright information.
+Examples:
+  # Download amd64 build log for hello version 2.2-1:
+  $PROGNAME hello 2\.2-1 amd64
+
+  # Download mips(el) build logs of all glibc versions:
+  $PROGNAME glibc "" mips.*
+
+  # Download all build logs of backported wesnoth versions:
+  $PROGNAME wesnoth .*bpo.*
+EOT
+}
+
+version() {
+    cat <<EOT
+This is $PROGNAME, from the Debian devscripts package, version ###VERSION###
+This code is copyright 2008 by Frank S. Thomas, all rights reserved.
+This program comes with ABSOLUTELY NO WARRANTY.
+You are free to redistribute this code under the terms of the
+GNU General Public License, version 2 or later.
+EOT
+}
+
+[ "$1" = "-h" ] || [ "$1" = "--help" ] && usage && exit 0
+[ "$1" = "-V" ] || [ "$1" = "--version" ] && version && exit 0
+
+[ $# -ge 1 ] && [ $# -le 3 ] || { usage && exit 1; }
+
+if [ ! -x "`which wget 2>/dev/null`" ]; then
+    echo "$PROGNAME: this program requires the wget package to be installed";
+    exit 1
+fi
+
+PACKAGE=$1
+VERSION=`(test -z "$2" && echo "[~+.[:alnum:]-]+") || echo "$2"`
+ARCH=`(test -z "$3" && echo "[[:alnum:]-]+") || echo "$3"`
+
+PATTERN="fetch\.(cgi|php)\?&pkg=$PACKAGE&ver=$VERSION&arch=$ARCH&\
+stamp=[[:digit:]]+"
+
+getbuildlog() {
+    BASE=$1
+    ALL_LOGS=`mktemp`
+
+    wget -q -O $ALL_LOGS "$BASE/build.php?&pkg=$PACKAGE"
+
+    # Put each href in $ALL_LOGS on a separate line so that $PATTERN
+    # matches only one href. This is required because grep is greedy.
+    sed -i -e "s/href=\"/\nhref=\"/g" $ALL_LOGS
+
+    for match in `grep -E -o "$PATTERN" $ALL_LOGS`; do
+        ver=`echo $match | cut -d'&' -f3 | cut -d'=' -f2`
+        arch=`echo $match | cut -d'&' -f4 | cut -d'=' -f2`
+        wget -O "${PACKAGE}_${ver}_${arch}.log" "$BASE/$match&file=log"
+    done
+
+    rm -f $ALL_LOGS
+}
+
+getbuildlog http://buildd.debian.org
+getbuildlog http://buildd.debian-ports.org
+getbuildlog http://experimental.debian.net

Property changes on: scripts/getbuildlog.sh
___________________________________________________________________
Name: svn:executable
   + *

Index: README
===================================================================
--- README	(revision 1456)
+++ README	(working copy)
@@ -151,6 +151,8 @@
   current Debian keyring on your system. [gnupg, debian-keyring, 
   libdigest-md5-perl]
 
+- getbuildlog: Download package build logs from Debian auto-builders. [wget]
+
 - grep-excuses: grep the update_excuses.html file to find out what is
   happening to your packages. [libterm-size-perl, wget]
 

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---
--- Begin Message ---
Source: devscripts
Source-Version: 2.10.29

We believe that the bug you reported is fixed in the latest version of
devscripts, which is due to be installed in the Debian FTP archive:

devscripts_2.10.29.dsc
  to pool/main/d/devscripts/devscripts_2.10.29.dsc
devscripts_2.10.29.tar.gz
  to pool/main/d/devscripts/devscripts_2.10.29.tar.gz
devscripts_2.10.29_amd64.deb
  to pool/main/d/devscripts/devscripts_2.10.29_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam D. Barratt <[EMAIL PROTECTED]> (supplier of updated devscripts package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 03 Jun 2008 19:28:09 +0100
Source: devscripts
Binary: devscripts
Architecture: source amd64
Version: 2.10.29
Distribution: unstable
Urgency: low
Maintainer: Devscripts Devel Team <[email protected]>
Changed-By: Adam D. Barratt <[EMAIL PROTECTED]>
Description: 
 devscripts - scripts to make the life of a Debian Package maintainer easier
Closes: 475506 481585 482587 483030 483169 483707 483861 483878
Changes: 
 devscripts (2.10.29) unstable; urgency=low
 .
   * checkbashisms:
     + Add checks for "sh -r", "sh -D", "sh [-+]O" and "sh with long options"
     + Don't treat scripts with dash or ash shebangs as "/bin/sh scripts", as
       dash implements some extensions to POSIX
     + Correctly match heredocs using "<<-"
     + Add checks for $'', $"", the use of echo with backslash escapes, $SHLVL,
       $POSIXLY_CORRECT and $PIPESTATUS. Based on a patch by Raphael Geissert.
   * debchange: Update the manual page to refer to +nmu versioning for native
     packages (Closes: #483861)
   * debdiff: Don't apply patches when extracting a Format 3.0 (quilt) source
     package, to minimise noise in the diffs (Closes: #475506)
   * getbuildlog: New script from Frank S. Thomas to download build logs for
     a given package (Closes: #483169)
   * mass-bug:
     + Allow the component parts of a version number to be used in the template,
       as #EPOCH#, #UPSTREAM_VERSION# and #REVISION# (Closes: #482587)
     + Add a command-line option to specify that the generated e-mails should
       not be wrapped to 70 characters (Closes: #483030)
     + Allow the sendmail command to begin with a tilde
   * mergechanges: Allow changes files with Formats of 1.7 and 1.8 to be merged,
     by removing the Checksums-* fields from the Format: 1.8 files. The result
     will be a valid Format: 1.7 changes file. (Closes: #481585)
   * who-uploads: Call gpg with --no-auto-check-trustdb to ensure that gpg
     doesn't attempt to perform a (potentially time-consuming) trustdb update
     (Closes: #483878)
   * wnpp-check: New script from David Paleino to check whether a package has
     has open bugs requested that it be packaged (RFP) or intending to do so
     (ITP) (Closes: #483707)
Checksums-Sha1: 
 9a5b3b75d42c8974803ae6238e452ea8fc9420e8 1385 devscripts_2.10.29.dsc
 06842c6ef2c1ffca366736f2ed28f207e0f56ace 577738 devscripts_2.10.29.tar.gz
 203c80695246cf739e3f7e65a531ccb50fb10ac0 494680 devscripts_2.10.29_amd64.deb
Checksums-Sha256: 
 9bed8e730720fbeaafba70b6c3260e24351f64c1a53d2aeebc3a9c0f9504c275 1385 
devscripts_2.10.29.dsc
 74c6f6334001ed44e69dd3eabf4f43cf2ffecab62159ac604d1c08a2e31483d6 577738 
devscripts_2.10.29.tar.gz
 2f1610da49f3e88cc0fdbbe5c940f16c575d52e694d0c832efbf7a80e5400ed3 494680 
devscripts_2.10.29_amd64.deb
Files: 
 399b922cff762760d1cdac57bed4c91f 1385 devel optional devscripts_2.10.29.dsc
 cf317be6795b64bae58b2dd1ea8dcec5 577738 devel optional 
devscripts_2.10.29.tar.gz
 56d19294c4b8fdd116cd26330fec80bb 494680 devel optional 
devscripts_2.10.29_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIRY5gokcE1TReOoURAo/SAJ0d2uZnXzlJ4kOqvAa9u3Q6K9kH/QCfZjlE
SPHVxICiSMz0OSoxIseubpI=
=Pzbk
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to