File: postrm

package info (click to toggle)
lintian 2.4.3%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,228 kB
  • ctags: 457
  • sloc: perl: 8,492; sh: 5,561; makefile: 1,971; ansic: 143; python: 19; tcl: 4; sed: 2
file content (18 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

# Try to purge the default lab if it looks like a lab.  If the user configured
# a lab for some other location, currently we don't do anything about that.
# Arguably we should parse lintianrc and remove that lab, but I'm not sure
# that's a good idea.
if [ "$1" = "purge" ]; then
    if [ -d "/var/spool/lintian/binary" ]; then
        rm -rf /var/spool/lintian/binary
        rm -rf /var/spool/lintian/source
        rm -rf /var/spool/lintian/udeb
        rm -rf /var/spool/lintian/info
    fi
    [ ! -d /var/spool/lintian ] || rmdir --ignore-fail-on-non-empty /var/spool/lintian
fi

#DEBHELPER#