The different scripts we have in our deb packages (postinst, prerm, etc.) are not run properly and therefore do not behave correctly under some circumstances. The problem is that they are converted from their RPM equivalents, but RPM and deb have different arguments for the scripts.
One prominent example is the preun/prerm script which fail to clean up icons and desktop files on Debian based systems.
One general way of solving this is to have our RPM-to-deb converter inject some magical converter code at the start of each script, that converts the argument list.
Same problem with solaris.
Fixed in r28792 and r28793.
Tester should verify that scripts are run on:
- Fresh installation.
Tested on Ubuntu 13.10 using build 4313. Works as intended. A bug #5071 was created due to pyc files preventing the remove of directories.
I've verified that tlwebaccess runs its postinstall and preremove scripts on package installation, so the general approach seems to work just fine.