Use APT pinning instead of using `apt-get install -t`.

parent 6f915a55
Package: pbuilder
Pin: release o=Debian Backports
Pin-Priority: 990
Package: *
Pin: release o=Debian Backports
Pin-Priority: -1
......@@ -455,12 +455,7 @@ if [ -f /etc/debian_version ] ; then
$UP2DATE || sudo apt-get install $DEBS $MASTERDEBS
# don't (re-)install pbuilder if it's on hold
if [ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' pbuilder)" != "hi " ] ; then
case $HOSTNAME in
codethink*) $UP2DATE || sudo apt-get install -t jessie-backports pbuilder
;;
*) $UP2DATE || sudo apt-get install pbuilder
;;
esac
$UP2DATE || sudo apt-get install pbuilder
fi
# remove unattended-upgrades if it's installed
if [ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' unattended-upgrades 2>/dev/null || true)" = "ii " ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment