On Sun, Aug 03, 2003 at 11:49:43AM +0100, Julian Gilbey wrote: > Then change the line in the postinst: > > + if [ "$1" = configure ] > + then > for i in /usr/bin/foo /usr/sbin/bar > do > - if ! dpkg-statoverride --list $i >/dev/null > + if [ dpkg --compare-versions "$2" lt "2.3.4-2" ] > then > dpkg-statoverride --update --add sysuser root 4755 $i > fi > done > + fi > > where 2.3.4-2 is to be replaced by the first version in which this > statoverride was introduced. > > In this way, if the sysadmin later touches the statoverride, their > changes will remain (for good or bad).
It also means that it will fail miserably if the admin has added a statoverride before installing version 2.3.4-2. The previous code already would leave an existing statoverride alone; it would only add one if it did not already exist. -- - mdz

