]> gitweb.fluxo.info Git - rhatto/dotfiles/debian.git/commitdiff
Alternative B90lintian
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 19 Sep 2014 20:54:59 +0000 (17:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 19 Sep 2014 20:54:59 +0000 (17:54 -0300)
config.dot/pbuilder/hooks/B90lintian.link [new file with mode: 0755]

diff --git a/config.dot/pbuilder/hooks/B90lintian.link b/config.dot/pbuilder/hooks/B90lintian.link
new file mode 100755 (executable)
index 0000000..625625d
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# We could just symlink /usr/share/doc/pbuilder/examples/B90lintian
+# but we dont want lintian to faild the build.
+#
+
+set -e
+
+install_packages() {
+    apt-get -y "${APTGETOPT[@]}" install "$@"
+}
+
+install_packages lintian
+
+echo "+++ lintian output +++"
+
+#su -c "lintian -I --show-overrides /tmp/buildd/*.changes" - pbuilder
+# use this version if you don't want lintian to fail the build
+su -c "lintian -I --show-overrides /tmp/buildd/*.changes; :" - pbuilder
+
+echo "+++ end of lintian output +++"