pango-modules (871B)
1#!/bin/sh 2# 3# This is a reduced version for the pango-modules trigger which is now 4# obsolete upstream. 5# The pango-modulesquery binary was removed from upstream and isn't provided 6# anymore by our 'pango' package 7# 8# This reduced version just removes the pango.modules file if it exists during 9# the removal of the 'pango' package 10# 11# Arguments: $ACTION = [run/targets] 12# $TARGET = [post-remove] 13# $PKGNAME 14# $VERSION 15# $UPDATE = [yes/no] 16# 17ACTION="$1" 18TARGET="$2" 19PKGNAME="$3" 20VERSION="$4" 21UPDATE="$5" 22 23pango_modules=etc/pango/pango.modules 24 25case "$ACTION" in 26targets) 27 echo "post-remove" 28 ;; 29run) 30 if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "pango" ]; then 31 if [ -f ${pango_modules} ]; then 32 echo "Removing pango modules file..." 33 rm -f ${pango_modules} 34 fi 35 break 36 fi 37 ;; 38*) 39 exit 0 40 ;; 41esac 42 43exit 0