File: postrm

package info (click to toggle)
dpkg-multicd 0.19
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 116 kB
  • ctags: 26
  • sloc: sh: 959; perl: 216; makefile: 55
file content (15 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

set -e

# Contrary to configuration files we need to restore the former state
# since our own binaries are removed with a `--remove'.
#
if [ "$1" = "remove" ]
then
    dpkg-divert --package dpkg-multicd --remove --rename \
        --divert /usr/bin/dpkg-scanpackages.dpkg /usr/bin/dpkg-scanpackages
    dpkg-divert --package dpkg-multicd --remove --rename \
        --divert /usr/share/man/man8/dpkg-scanpackages.dpkg.8.gz \
	/usr/share/man/man8/dpkg-scanpackages.8.gz
fi