File: postrm

package info (click to toggle)
reprepro 5.4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,700 kB
  • sloc: ansic: 53,795; python: 1,625; sh: 1,417; makefile: 120
file content (20 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

case "$1" in
    purge)
        # if purging the package in a failed-upgrade scenerio, also get rid of the temporary file:
        rm -f /etc/bash_completion.d/reprepro.dpkg-remove
    ;;
    abort-install|abort-upgrade)
        # if the upgrade failed, revert the old /etc/bash_completion.d/reprepro file
        if test -f /etc/bash_completion.d/reprepro.dpkg-remove && ! test -e /etc/bash_completion.d/reprepro; then
            mv -n /etc/bash_completion.d/reprepro.dpkg-remove /etc/bash_completion.d/reprepro
        fi
    ;;
esac

#DEBHELPER#

exit 0