#! /bin/sh -e #edited in rules file DIVERT_LIST=$(cat /usr/share/lliurex-mime-settings/diverted-list) if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ];then for FILE_NAME in $DIVERT_LIST;do if [ -e FILE_NAME ];then rm -rf /usr/lib/mime/packages/$FILE_NAME dpkg-divert --package lliurex-mime-settings --remove --rename --divert /usr/share/lliurex-mime-settings/diverted/$FILE_NAME.diverted /usr/lib/mime/packages/$FILE_NAME fi done; fi; #DEBHELPER# exit 0