Bug#544578: Lintian example hook causes pbuilder to purge *.deb if there are errors
Chow Loong Jin
hyperair at ubuntu.com
Tue Sep 1 16:57:47 UTC 2009
Package: pbuilder
Version: 0.189ubuntu1
Severity: normal
Tags: patch
pbuilder's lintian example hook script (installed to
/usr/share/doc/pbuilder/examples/B90lintian) causes pbuilder to not upload *.deb
files to ${BUILDRESULT} when there are errors, This is annoying as having the
built packages at hand is useful to help disseminate lintian error messages.
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic-updates
APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-rc7-hyper1 (SMP w/2 CPU cores)
Locale: LANG=en_SG.UTF-8, LC_CTYPE=en_SG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pbuilder depends on:
ii coreutils 7.4-2 The GNU core utilities
ii debconf [debconf-2.0] 1.5.27ubuntu1 Debian configuration management sy
ii debianutils 2.30ubuntu3 Miscellaneous utilities specific t
ii debootstrap 1.0.13 Bootstrap a basic Debian system
ii wget 1.11.4-2ubuntu1 retrieves files from the web
Versions of packages pbuilder recommends:
ii devscripts 2.10.48ubuntu2 scripts to make the life of a Debi
ii fakeroot 1.12.4ubuntu1 Gives a fake root environment
ii sudo 1.7.0-1ubuntu2 Provide limited super user privile
Versions of packages pbuilder suggests:
pn cowdancer <none> (no description available)
ii gdebi 0.5.2 Simple tool to install deb files
pn pbuilder-uml <none> (no description available)
-- debconf information excluded
-------------- next part --------------
>From cdac01f5c2ce8e712c2aa8737cdb3a3001198d60 Mon Sep 17 00:00:00 2001
From: Chow Loong Jin <hyperair at gmail.com>
Date: Wed, 2 Sep 2009 00:56:08 +0800
Subject: [PATCH] Make lintian script more fault tolerant
---
examples/B90lintian | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/B90lintian b/examples/B90lintian
index 57fcfc4..ae163a1 100644
--- a/examples/B90lintian
+++ b/examples/B90lintian
@@ -2,5 +2,5 @@
# example file to be used with --hookdir
#
# run lintian on generated deb files
-apt-get install -y --force-yes lintian
-lintian /tmp/buildd/*.deb
+apt-get install -y --force-yes lintian && \
+lintian /tmp/buildd/*.deb || true
--
1.6.3.3
More information about the Pbuilder-maint
mailing list