Hi Jakub,

On Wed, Sep 17, 2014 at 11:29 PM, Jakub Wilk <jw...@debian.org> wrote:
> The version number is wrong, because the removal code was added only in
> 8.6.9-2.

Thanks, I'll update my post/pre* files to make the removal for next version.

Hi Paul,

On Thu, Sep 18, 2014 at 3:19 AM, Paul Wise <p...@debian.org> wrote:
> You are manually removing the files, dh_installdeb would move the
> removals into the #DEBHELPER# token. Then you could simply remove the
> scripts entirely because debhelper would automatically generate them
> from the debian/asciidoc.maintscript file, more info:
>
> http://manpages.debian.org/man0/dh_installdeb
> https://en.wikipedia.org/wiki/Declarative_programming

Yes, but dh_installdeb is already part of the binary target and I
didn't override this target, only the clean, dh_compress, dh_install
and dh_link targets, so I implicitly already use it and it should do
the trick, but left a lot of obsolete files in my case.
That's why I used dpkg-maintscript-helper snippets in postinst,
preinst and postrm files following Raphael Hertzog's blog post
referenced in the wiki.

If I understand correctly I have to move everything in a
debain/asciidoc.maintscript, just putting the "rm_conffile <file>
<package_version>"?
In this case a lot of documentation should be updated!

https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#rules
https://wiki.debian.org/DpkgConffileHandling
http://raphaelhertzog.com/2010/10/07/the-right-way-to-remove-an-obsolete-conffile-in-a-debian-package/
http://man.cx/dpkg-maintscript-helper

> Please try this upgrade sequence (and Jakub's one) to reproduce it.
Yes, thanks a lot, I now see what the upgrade issue comes from.
I'll correct that.

Best,
Joseph


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to