On Mon, 19 Sep 2022 12:59:59 +0000 Lance Lin <lqi...@protonmail.com> wrote:
>
> Thank you for tracking this down. I did make the change in -33.
>
> Yes, I made the change to remove dangling symlinks on uninstall. I
>
> didn't realize this was called on upgrades, so I've moved the logic
>
> inside the "purge" case.
>
> I propose to make the following change to anacron.postrm:
>
> #!/bin/sh
>
> set -e
>
> if [ "$1" = "purge" ]; then
> # here for historical reasons
>         rm -f /var/log/anacron /var/log/anacron.[0-9]*
>         rm -rf /var/spool/anacron
>
>         # Close bug #993348
>         rm /etc/systemd/system/multi-user.target.wants/anacron.service
>         rm /etc/systemd/system/timers.target.wants/anacron.timer
> fi
>
> #DEBHELPER#
>
> Do you agree with this change?

Yes, that seems like it should prevent future upgrades from disabling
the service and the timer. Users that upgraded from -33 or -34 will
still need to manually re-enable the service and the timer, of course.
I'm capable of doing that with my systems, but I'll leave whether
that's acceptable in general up to you.

Reply via email to