huh… no --install-recommends apt(1) option on etch and sarge…
authorThorsten Glaser <tg@mirbsd.org>
Sat, 17 Dec 2011 22:35:54 +0000 (22:35 +0000)
committerThorsten Glaser <tg@mirbsd.org>
Sat, 17 Dec 2011 22:35:54 +0000 (22:35 +0000)
(I suppose this is slowly growing large enough for copyright)

posix/pbuilder-hooks/B20lintian

index 8b82657..1b39881 100644 (file)
@@ -1,11 +1,16 @@
 #!/bin/sh
-# $MirOS: contrib/hosted/tg/deb/hookdir/B20lintian,v 1.1 2011/12/15 21:06:42 tg Exp $
+# $MirOS: contrib/hosted/tg/deb/hookdir/B20lintian,v 1.2 2011/12/17 22:33:34 tg Exp $
 #-
 # Not complicated enough for copyright.
 
 unset LANGUAGE
 LC_ALL=C; export LC_ALL
-apt-get --purge -y install --install-recommends lintian
+
+ir=--install-recommends
+# arrrrrgh!
+apt-get install $ir -s apt >/dev/null 2>&1 || ir=
+apt-get --purge -y install $ir lintian
+
 argE=
 argP=
 if lintian -h 2>&1 | grep -F -- --display-experimental >/dev/null 2>&1; then