[go: up one dir, main page]

File: postrm

package info (click to toggle)
sasa 0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 168 kB
  • sloc: ansic: 397; sh: 173; python: 36; makefile: 34
file content (19 lines) | stat: -rw-r--r-- 734 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

set -e

if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
    dpkg-divert --package sasa --remove --rename \
        --divert /usr/bin/socket-activate.py /usr/bin/socket-activate
    dpkg-divert --package sasa --remove --rename \
        --divert /usr/share/man/man1/socket-activate.py.1.gz /usr/share/man/man1/socket-activate.1.gz
fi

if [ abort-upgrade = "$1" ] && dpkg --compare-versions "$2" lt 0.1-1; then
    dpkg-divert --package sasa --remove --rename \
        --divert /usr/bin/socket-activate.py /usr/bin/socket-activate
    dpkg-divert --package sasa --remove --rename \
        --divert /usr/share/man/man1/socket-activate.py.1.gz /usr/share/man/man1/socket-activate.1.gz
fi

#DEBHELPER#