Package: whatmaps
Version: 0.0.13-1
Severity: minor

1. Install whatmaps.
2. Remove (but do not purge) whatmaps.
3. Run apt upgrade.
4. Observe: "/bin/sh: 1: /usr/bin/whatmaps: not found".

Fix: DPkg::Pre-Install-Pkgs in /etc/apt/apt.cofn.d/50whatmaps_apt
should only execute /usr/bin/whatmaps if it exists, something like:

DPkg::Pre-Install-Pkgs { [ -f /usr/bin/whatmaps ] && "/usr/bin/whatmaps --apt 
--restart --print-cmds=/var/lib/whatmaps/restart.sh || true" };

Reply via email to