Package: asciidoc Version: 8.6.3-1 Severity: minor Tags: patch /etc/asciidoc/docbook.conf was renamed to docbook45.conf but asciidoc does not automatically migrate settings or remove the old conffile. With the help of dpkg-maintscript-helper it could.
One caveat to the patch: notice the pre-depends. Once squeeze is released, it could be dropped without trouble (oldstable -> sid upgrades are not supported) but unfortunately squeeze is not released yet. If I understand policy ยง3.5 correctly then uploading _with_ pre-depends would require discussion and consensus on debian-devel. Signed-off-by: Jonathan Nieder <jrnie...@gmail.com> --- Seems to work okay. Thoughts? debian/changelog | 8 ++++++++ debian/control | 1 + debian/postinst | 6 ++++++ debian/postrm | 6 ++++++ debian/preinst | 6 ++++++ 5 files changed, 27 insertions(+), 0 deletions(-) create mode 100755 debian/postinst create mode 100755 debian/postrm create mode 100755 debian/preinst diff --git a/debian/changelog b/debian/changelog index f4696ea..b3ce432 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +asciidoc (8.6.3-1.0.1) local; urgency=low + + * Take care of moving settings from docbook.conf to docbook45.conf + on upgrade. + * Pre-Depends: dpkg (>= 1.15.7.2) + + -- Jonathan Nieder <jrnie...@gmail.com> Sun, 16 Jan 2011 01:49:15 -0600 + asciidoc (8.6.3-1) unstable; urgency=low * New upstream version (Closes: #595324) diff --git a/debian/control b/debian/control index fc430f3..a3ac7ea 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,7 @@ Standards-Version: 3.9.1 Package: asciidoc Architecture: all Depends: python (>= 2.4), ${misc:Depends} +Pre-Depends: dpkg (>= 1.15.7.2) Recommends: docbook-utils, xmlto, dblatex, libxml2-utils Suggests: vim-addon-manager, source-highlight Description: Highly configurable text format for writing documentation diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..0c4b469 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +#DEBHELPER# +dpkg-maintscript-helper mv_conffile \ + /etc/asciidoc/docbook.conf /etc/asciidoc/docbook45.conf \ + 8.6.3-1 asciidoc -- "$@" diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..0c4b469 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +#DEBHELPER# +dpkg-maintscript-helper mv_conffile \ + /etc/asciidoc/docbook.conf /etc/asciidoc/docbook45.conf \ + 8.6.3-1 asciidoc -- "$@" diff --git a/debian/preinst b/debian/preinst new file mode 100755 index 0000000..0c4b469 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +#DEBHELPER# +dpkg-maintscript-helper mv_conffile \ + /etc/asciidoc/docbook.conf /etc/asciidoc/docbook45.conf \ + 8.6.3-1 asciidoc -- "$@" -- 1.7.4.rc2 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org