blob: ec0887f3e32b579862d8dd3b6bbe566279f53b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|