classabbyamp 9ab1405894
*: remove unnecessary execute permissions
* INSTALL scripts don't need to be executable
* anything installed by vbin is set to 755
* many of these files were otherwise marked executable in the template
  (vinstall, chmod, etc)
* some had no business being executable, like the smattering of patches
  and other files
* remove files from chroot-distcc no longer used in the template
  (46ce787b63d467d9b8e5ef8821e2ddefea4b980a)
2024-08-02 13:24:47 -04:00

44 lines
871 B
Bash

#!/bin/sh
#
# This is a reduced version for the pango-modules trigger which is now
# obsolete upstream.
# The pango-modulesquery binary was removed from upstream and isn't provided
# anymore by our 'pango' package
#
# This reduced version just removes the pango.modules file if it exists during
# the removal of the 'pango' package
#
# Arguments: $ACTION = [run/targets]
# $TARGET = [post-remove]
# $PKGNAME
# $VERSION
# $UPDATE = [yes/no]
#
ACTION="$1"
TARGET="$2"
PKGNAME="$3"
VERSION="$4"
UPDATE="$5"
pango_modules=etc/pango/pango.modules
case "$ACTION" in
targets)
echo "post-remove"
;;
run)
if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "pango" ]; then
if [ -f ${pango_modules} ]; then
echo "Removing pango modules file..."
rm -f ${pango_modules}
fi
break
fi
;;
*)
exit 0
;;
esac
exit 0