On Tue, 22 May 2012, Roland Mas wrote:

> +case "$1" in
> +    triggered)
> +     if [ "$2" = /usr/share/mediawiki/maintenance/postgres ] ; then
> +         # Upgrade Mediawiki database schemas
> +         /usr/share/gforge/bin/list-projects-using-plugin.php mediawiki | 
> while read i ; do
> +             /usr/share/gforge/plugins/mediawiki/bin/mw-wrapper.php $i 
> update.php
> +         done
> +
> +     fi
> +     ;;
> +    
> +    configure|abort-upgrade|abort-remove|abort-deconfigure)
> +     ;;

IIRC, dpkg triggers have an (I believe unfortunate) issue in the
implementation that, when both packages are upgraded at the same
time, the postinst is called only once with "configure", i.e. the
"triggered" is swallowed up.

Maybe we need to Pre-Depends on mediawiki in ff-p-mw thus?

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-314
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Boris Esser, Elmar Geese



--
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