[Python-modules-team] Bug#728427: python-babel-localedata is empty after installing

Andreas Beckmann anbe at debian.org
Sun Nov 3 12:13:39 UTC 2013


From my usual piuparts templates:


For switching from a directory to a symlink the *postinst* script
should do something like this:

        DOCDIR=/usr/share/doc/@@PACKAGE@@
        DOCLINK=@@OTHERPACKAGE@@

        if [ -d $DOCDIR ] && [ ! -L $DOCDIR ]; then
                rmdir $DOCDIR
                ln -s $DOCLINK $DOCDIR
        fi

For switching from a symlink to a directory, the *preinst* script
should do something like this:

        DOCDIR=/usr/share/doc/@@PACKAGE@@

        if [ -L $DOCDIR ]; then
                rm $DOCDIR
        fi



Andreas



More information about the Python-modules-team mailing list