]> gitweb.fluxo.info Git - rhatto/dotfiles/debian.git/commitdiff
Adds missing files
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Dec 2017 12:58:58 +0000 (10:58 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Dec 2017 12:58:58 +0000 (10:58 -0200)
config.dot/pbuilder/hooks/B90lintian.link.strict [new symlink]
config.dot/pbuilder/hooks/E01apt-preferences.link [new file with mode: 0755]

diff --git a/config.dot/pbuilder/hooks/B90lintian.link.strict b/config.dot/pbuilder/hooks/B90lintian.link.strict
new file mode 120000 (symlink)
index 0000000..695f301
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/doc/pbuilder/examples/B90lintian
\ No newline at end of file
diff --git a/config.dot/pbuilder/hooks/E01apt-preferences.link b/config.dot/pbuilder/hooks/E01apt-preferences.link
new file mode 100755 (executable)
index 0000000..ec0887f
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+# See https://wiki.ubuntu.com/PbuilderHowto#Using_backport_repositories_in_pbuilder
+set -e
+
+WHEEZY_VERSION_REGEX='^7\.[0-9]\+$'
+
+if $(cat "/etc/debian_version" | grep -q -e "$WHEEZY_VERSION_REGEX"); then
+cat > "/etc/apt/preferences" << EOF
+Package: debhelper
+Pin: release a=wheezy-backports
+Pin-Priority: 999
+
+Package: lintian
+Pin: release a=wheezy-backports
+Pin-Priority: 999
+EOF
+fi