On Tue, Nov 12, 2013 at 05:32:28PM +0100, Ondřej Surý wrote: > On Tue, Nov 12, 2013, at 14:37, Tollef Fog Heen wrote: > > ]] Ondřej Surý > > > > > Now the "nsd" user has been removed in nsd3.postinst, but it is still > > > needed by nsd (>= 4.0.0) package. Any ideas how to fix that? Or should I > > > just cross the fingers and hope nobody would do such thing? > > > > As others have said: stop removing the user > > I will, but the harm has been already done at the time I become the nsd* > maintainer. > > > but also, rm the old postrm script (with suitable checks). > > I'll use: > > sed -i -e '/deluser --quiet nsd/ d' /var/lib/dpkg/info/nsd3.postrm > > instead, but thanks for the hint. That helped me to break from > '/var/lib/dpkg/info is sacred' mindset.
It's the hard-coding of the path that should be avoided. Instead, use “dpkg-query --control-path nsd3 postrm” to get the path. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <james...@debian.org>
signature.asc
Description: Digital signature