Commit 8efc9e33 authored by intrigeri's avatar intrigeri

APT pinning: with our snapshots system, backports have o=Debian.

... and here as well, add a sanity check to warn the developer early if
they used "o=Debian Backports".

We could easily fix that for time-based snapshots, but for tagged
snapshots it's a different story: when we pull packages from time-based
snapshots into tagged snapshots, we have no means to know what was
the Origin they were pulled from initially.

Granted, we *could* handle backports as a different archive (just like
we have to do for debian-security), but it doesn't feel worth
the hassle.
parent 7b7c8d8f
......@@ -22,6 +22,12 @@ if grep -qs -E '^Pin:\s+release\s+.*a=' config/chroot_apt/preferences ; then
echo "use n= instead. Exiting."
exit 1
fi
if grep -qs -E '^Pin:\s+release\s+.*o=Debian Backports' \
config/chroot_apt/preferences ; then
echo "Found unsupported 'o=Debian Backports' syntax,"
echo "in config/chroot_apt/preferences. Use o=Debian instead. Exiting."
exit 1
fi
# init variables
RUN_LB_CONFIG="lb config noauto"
......
Package: apparmor-profiles-extra
Pin: release o=Debian Backports,n=jessie-backports
Pin: release o=Debian,n=jessie-backports
Pin-Priority: 999
Package: b43-fwcutter
......@@ -67,7 +67,7 @@ Pin: release o=Debian,n=sid
Pin-Priority: 999
Package: libnet-dbus-perl
Pin: release o=Debian Backports,n=jessie-backports
Pin: release o=Debian,n=jessie-backports
Pin-Priority: 999
Package: monkeysphere
......@@ -83,7 +83,7 @@ Pin: release o=TorProject,n=obfs4proxy
Pin-Priority: 990
Package: pinentry-gtk2
Pin: release o=Debian Backports,n=jessie-backports
Pin: release o=Debian,n=jessie-backports
Pin-Priority: 999
Package: python-electrum
......@@ -95,15 +95,15 @@ Pin: release o=TorProject,n=sid
Pin-Priority: 999
Package: torsocks
Pin: release o=Debian Backports,n=jessie-backports
Pin: release o=Debian,n=jessie-backports
Pin-Priority: 999
Package: xserver-xorg-video-intel
Pin: release o=Debian Backports,n=jessie-backports
Pin: release o=Debian,n=jessie-backports
Pin-Priority: 999
Package: xul-ext-torbirdy
Pin: release o=Debian Backports,n=jessie-backports
Pin: release o=Debian,n=jessie-backports
Pin-Priority: 999
Explanation: weirdness in chroot_apt install-binary
......
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