File: postrm

package info (click to toggle)
python-central 0.6.16%2Bnmu1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 280 kB
  • ctags: 234
  • sloc: python: 2,585; perl: 522; sh: 135; makefile: 58
file content (14 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh -e

if [ "$1" = "purge" ]; then
    # remove log file
    rm -f /var/log/pycentral.log
    rm -f /usr/share/pycentral-data/pyversions.pyc
    if [ -d /var/lib/pycentral ]; then
	rm -f /var/lib/pycentral/delayed-pkgs
	rm -f /var/lib/pycentral/pkgremove
	rmdir --ignore-fail-on-non-empty /var/lib/pycentral || true
    fi
fi

#DEBHELPER#