|
6 | 6 | set -e |
7 | 7 |
|
8 | 8 | # summary of how this script can be called: |
9 | | -# * <postinst> `configure' <most-recently-configured-version> |
10 | | -# * <old-postinst> `abort-upgrade' <new version> |
11 | | -# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
12 | | -# <new-version> |
13 | | -# * <postinst> `abort-remove' |
14 | | -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
15 | | -# <failed-install-package> <version> `removing' |
16 | | -# <conflicting-package> <version> |
17 | | -# for details, see http://www.debian.org/doc/debian-policy/ or |
18 | | -# the debian-policy package |
| 9 | +# <new-postinst> configure |
| 10 | +# on fresh install |
| 11 | +# <new-postinst> configure <most-recently-configured-version> |
| 12 | +# on upgrade OR on install after pkg removal without purging conf files |
| 13 | +# <old-postinst> abort-upgrade <new version> |
| 14 | +# on upgrade failed (after failure of prerm, preinst, postrm) |
| 15 | +# <conflictor's-postinst> abort-remove in-favour <package> <new-version> |
| 16 | +# on removal due to conflict with other package |
| 17 | +# <postinst> abort-remove |
| 18 | +# on removal (after failure of prerm) |
| 19 | +# <deconfigured's-postinst> abort-deconfigure in-favour |
| 20 | +# <failed-install-package> <version> |
| 21 | +# [ removing <conflicting-package> <version> ] |
| 22 | +# on removal due to breaks/conflict with other package (if --auto-deconfigure) |
| 23 | +# <postinst> triggered <trigger-name> [<trigger-name> ...] |
| 24 | +# when a trigger we've registered interest in fires, |
| 25 | +# such as when /usr/bin/python3.9 (or similar) gets updated, |
| 26 | +# allowing this script to rebuild the venv. |
| 27 | +# https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html |
| 28 | +# https://www.mankier.com/5/deb-postinst |
| 29 | +# https://www.mankier.com/5/deb-triggers |
| 30 | +# https://stackoverflow.com/questions/15276535/dpkg-how-to-use-trigger |
19 | 31 |
|
20 | 32 | case "$1" in |
21 | 33 | configure) |
|
0 commit comments