On Sat, 21 Nov 2015 13:02:28 +0800 Paul Wise wrote:

> I've made a simple proof-of-concept for this:

There were a couple of bugs, now I am using this:

#!/bin/sh
# https://bugs.debian.org/725934
for pkg in $(debsecan | grep -E '\(fixed(\)|, )' | cut -d\  -f2 | sort -u) ; do
         cat <<EOF >> /etc/apt/preferences.d/debsecan.disabled
Package: $pkg
Pin: release a=unstable
Pin-Priority: 900

EOF
done
chmod 644 /etc/apt/preferences.d/debsecan.disabled
mv --force /etc/apt/preferences.d/debsecan.disabled 
/etc/apt/preferences.d/debsecan

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to