9 ms·
That obviously isn't how it should have been done, but the real problem here is that the packaging system makes it too easy to do this in the first place. If y
by maw 8y ago
That obviously isn't how it should have been done, but the real problem here is that the packaging system makes it too easy to do this in the first place.
If you use pre and post and preun and postun (rpm terminology) it almost always is a sign of a deficiency elsewhere, especially when run against files outside of your package's bailiwick.
- deleted 8y ago[deleted]
- xnyanta 8y agoThere's nothing wrong with using such scriptlets, especially in the case of dpkg diversions like the author of this article mentions. Of course, touching files outside of your package is still a no-no.
- bureado 8y agoMaintainer scripts are still very valuable, we use those in other packages (such as Code) for update-alternatives and they can be really useful in APT-based systems for user prompts via debconf. But, at any rate, we weren't thoughtful (at all) on what we did with those scripts. The team addressed that earlier today, using maintainer scripts: https://aka.ms/Oxbegy https://aka.ms/Oxbegy