1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#!/bin/bash
# The first version the /etc/cvs.conf shipped with this version
# came with.
FIRST_THIS_CONFFILE="1.10.7-1"
FIRST_CONFFILE="1.9.10+openbsd-2"
do_warning ()
{
if /usr/bin/dpkg --compare-versions $1 ge $FIRST_CONFFILE &&
/usr/bin/dpkg --compare-versions $1 lt $FIRST_THIS_CONFFILE &&
test -f /etc/cvs.conf; then
cat <<-EOF
[CVS]: Warning: dpkg may ask you about updating the conffile
/etc/cvs.conf. This will be handled automatically, so
either answer to the question of which version of the
file you want to keep will be OK. However, it is
recommended you keep the old version, since the old
configuration will not be installed in the new file until
you later run cvsconfig, so history rotation and other
functions will be disabled.
You will have to rerun cvsconfig to update your configuration
though; this is no longer done automatically.
Press enter to continue
EOF
read LINE
touch /etc/cvs.conf.isnew
fi
}
case "$1" in
install)
if [ "$2" != "" ]; then
do_warning $2
fi
;;
upgrade)
do_warning $2
;;
esac
#DEBHELPER#
|