Hi Ivo, thanks for your work on this. I just sponsored the package. Will you file the unblock bug or should I care for it?
Kind regards Andreas. On Wed, Dec 12, 2012 at 12:53:41AM +0100, Ivo De Decker wrote: > Control: tag -1 patch pending > > Hi, > > On Wed, Dec 05, 2012 at 02:12:06PM +0100, Andreas Tille wrote: > > reading Andreas' hint how to really solve the problem looks pretty > > straightforward to me. If you just need some helping hand for the > > upload feel free to ping me for another NMU. > > In my tests, the rm -rf in the preinst cause more problems than they solve. > The fix is to have a postinst with the same code as in mlterm and mlterm-tiny. > The attached patch (against -1.1, not -1.2) fixes this. > > I did the piuparts upgrade test, so it should be fine now :) > > Cheers, > > Ivo > diff -Nru mlterm-3.1.2/debian/changelog mlterm-3.1.2/debian/changelog > --- mlterm-3.1.2/debian/changelog 2012-09-08 16:18:20.000000000 +0200 > +++ mlterm-3.1.2/debian/changelog 2012-12-12 00:34:48.000000000 +0100 > @@ -1,3 +1,19 @@ > +mlterm (3.1.2-1.3) unstable; urgency=low > + > + * Non-maintainer upload. > + * Don't delete docs in preinst. Create correct symlinks in postinst. > + (closes: #688603, #688604, #688605, #688606, 694153). > + > + -- Ivo De Decker <ivo.dedec...@ugent.be> Wed, 12 Dec 2012 00:34:33 +0100 > + > +mlterm (3.1.2-1.2) unstable; urgency=medium > + > + * Non-maintainer upload. > + * Remove previous documentation directories prior to package installation > + (closes: #688603, #688604, #688605, #688606). > + > + -- Michael Gilbert <mgilb...@debian.org> Sun, 18 Nov 2012 07:18:33 +0000 > + > mlterm (3.1.2-1.1) unstable; urgency=low > > * Non-maintainer upload. > diff -Nru mlterm-3.1.2/debian/mlterm-im-ibus.postinst > mlterm-3.1.2/debian/mlterm-im-ibus.postinst > --- mlterm-3.1.2/debian/mlterm-im-ibus.postinst 1970-01-01 > 01:00:00.000000000 +0100 > +++ mlterm-3.1.2/debian/mlterm-im-ibus.postinst 2012-12-12 > 00:12:38.000000000 +0100 > @@ -0,0 +1,19 @@ > +#! /bin/sh > + > +set -e > + > +if [ "$1" = "configure" ]; then > + # Replace documentation directory with symlink > + docdir="/usr/share/doc/mlterm-im-ibus" > + if [ -d $docdir -a ! -L $docdir ]; then > + if rmdir $docdir 2>/dev/null; then > + ln -sf /usr/share/doc/mlterm-common $docdir > + fi > + fi > +fi > + > +#DEBHELPER# > + > +exit 0 > + > + > diff -Nru mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst > mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst > --- mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst 1970-01-01 > 01:00:00.000000000 +0100 > +++ mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst 2012-12-12 > 00:12:38.000000000 +0100 > @@ -0,0 +1,19 @@ > +#! /bin/sh > + > +set -e > + > +if [ "$1" = "configure" ]; then > + # Replace documentation directory with symlink > + docdir="/usr/share/doc/mlterm-im-m17nlib" > + if [ -d $docdir -a ! -L $docdir ]; then > + if rmdir $docdir 2>/dev/null; then > + ln -sf /usr/share/doc/mlterm-common $docdir > + fi > + fi > +fi > + > +#DEBHELPER# > + > +exit 0 > + > + > diff -Nru mlterm-3.1.2/debian/mlterm-im-scim.postinst > mlterm-3.1.2/debian/mlterm-im-scim.postinst > --- mlterm-3.1.2/debian/mlterm-im-scim.postinst 1970-01-01 > 01:00:00.000000000 +0100 > +++ mlterm-3.1.2/debian/mlterm-im-scim.postinst 2012-12-12 > 00:12:38.000000000 +0100 > @@ -0,0 +1,19 @@ > +#! /bin/sh > + > +set -e > + > +if [ "$1" = "configure" ]; then > + # Replace documentation directory with symlink > + docdir="/usr/share/doc/mlterm-im-scim" > + if [ -d $docdir -a ! -L $docdir ]; then > + if rmdir $docdir 2>/dev/null; then > + ln -sf /usr/share/doc/mlterm-common $docdir > + fi > + fi > +fi > + > +#DEBHELPER# > + > +exit 0 > + > + > diff -Nru mlterm-3.1.2/debian/mlterm-im-uim.postinst > mlterm-3.1.2/debian/mlterm-im-uim.postinst > --- mlterm-3.1.2/debian/mlterm-im-uim.postinst 1970-01-01 > 01:00:00.000000000 +0100 > +++ mlterm-3.1.2/debian/mlterm-im-uim.postinst 2012-12-12 > 00:12:38.000000000 +0100 > @@ -0,0 +1,19 @@ > +#! /bin/sh > + > +set -e > + > +if [ "$1" = "configure" ]; then > + # Replace documentation directory with symlink > + docdir="/usr/share/doc/mlterm-im-uim" > + if [ -d $docdir -a ! -L $docdir ]; then > + if rmdir $docdir 2>/dev/null; then > + ln -sf /usr/share/doc/mlterm-common $docdir > + fi > + fi > +fi > + > +#DEBHELPER# > + > +exit 0 > + > + > diff -Nru mlterm-3.1.2/debian/mlterm-tools.postinst > mlterm-3.1.2/debian/mlterm-tools.postinst > --- mlterm-3.1.2/debian/mlterm-tools.postinst 1970-01-01 01:00:00.000000000 > +0100 > +++ mlterm-3.1.2/debian/mlterm-tools.postinst 2012-12-12 00:12:38.000000000 > +0100 > @@ -0,0 +1,19 @@ > +#! /bin/sh > + > +set -e > + > +if [ "$1" = "configure" ]; then > + # Replace documentation directory with symlink > + docdir="/usr/share/doc/mlterm-tools" > + if [ -d $docdir -a ! -L $docdir ]; then > + if rmdir $docdir 2>/dev/null; then > + ln -sf /usr/share/doc/mlterm-common $docdir > + fi > + fi > +fi > + > +#DEBHELPER# > + > +exit 0 > + > + -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org