http://bugzilla.spamassassin.org/show_bug.cgi?id=3554
------- Additional Comments From [EMAIL PROTECTED] 2004-06-28 23:29 -------
Mea culpa. I just reverted to the stock 2.63 to try to reproduce this and it
installs a sysconfig file with "-a" in it. This file isn't removed until after
%post runs.
If reconfiguration is indeed necessary, then condrestart isn't appropriate.
Instead, the service should be stopped and disabled.
For comparison, the RPM in Rawhide has this in %post:
%post
/sbin/chkconfig --add spamassassin
# -a and --auto-whitelist options were removed from 3.0.0
# prevent service startup failure
perl -p -i -e 's/(["\s]-\w+)a/$1/ ; s/(["\s]-)a(\w+)/$1$2/ ; s/(["\s])-a\b/$1/'
/etc/sysconfig/spama
perl -p -i -e 's/ --auto-whitelist//' /etc/sysconfig/spamassassin
if [ -f /etc/spamassassin.cf ]; then
%{__mv} /etc/spamassassin.cf /etc/mail/spamassassin/migrated.cf
fi
if [ -f /etc/mail/spamassassin.cf ]; then
%{__mv} /etc/mail/spamassassin.cf /etc/mail/spamassassin/migrated.cf
fi
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.