From 9a076aa95e69054b46ba985b4c1be67b2cd1a10b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 19 Nov 2007 12:50:02 +0100 Subject: [PATCH] Do not enable apt-listbugs if the binary is not available --- debian/changelog | 7 +++++++ etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 595d797..91a83d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-live (0.0.10) unstable; urgency=low + + * Do not enable apt-listbugs if the binary is not available. + [Testing: issue340] + + -- Michael Prokop Mon, 19 Nov 2007 12:49:37 +0100 + grml-live (0.0.9) unstable; urgency=low * Remove all files inside /root/ when using class RELEASE. diff --git a/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs b/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs index 4650cad..a6ed5a9 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs +++ b/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sun Nov 04 22:40:43 CET 2007 [mika] +# Latest change: Mon Nov 19 12:49:27 CET 2007 [mika] ################################################################################ set -e @@ -21,7 +21,9 @@ if [ -x $target/usr/bin/apt-listchanges ] ; then fi if [ -r $target/etc/apt/apt.conf.d/10apt-listbugs ] ; then - sed -i 's#//DPkg::#DPkg::#' $target/etc/apt/apt.conf.d/10apt-listbugs + if [ -x $target/usr/sbin/apt-listbugs ] ; then + sed -i 's#//DPkg::#DPkg::#' $target/etc/apt/apt.conf.d/10apt-listbugs + fi fi if ifclass RELEASE ; then -- 2.1.4