News for hackers. Stuff that matters.
Re:Microsoft’s failed attempt on Debian packaging by maw on Tuesday June 12, 2018 @10:37AM (#17293625)
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.

Re:Microsoft’s failed attempt on Debian packaging by xnyanta on Tuesday June 12, 2018 @10:58AM (#17293824)
There'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.

Re:Microsoft’s failed attempt on Debian packaging by bureado on Wednesday June 13, 2018 @02:40PM (#17305880)
Maintainer 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