source: air-manager/trunk/fuentes/debian/air-installer.prerm @ 7377

Last change on this file since 7377 was 7375, checked in by Juanma, 22 months ago

add diversion

File size: 594 bytes
Line 
1#!/bin/sh
2set -e
3
4# Template for diversions
5ORIG_FILE="/usr/share/mime/application/vnd.adobeair-application-installer-package+zip.xml"
6OUR_FILE="/usr/share/mime/package/x-air-installer.xml"
7OUR_PACKAGE="air-installer"
8
9case $1 in
10        remove|purge|abort-install|disappear)
11                if [ -f ${ORIG_FILE}.real ] ; then
12                        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
13                fi
14               
15                ;;
16        *)
17                echo "Nothing to do"
18                ;; 
19esac
20
21# Other Stuff #
22
23#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.