File: preinst

package info (click to toggle)
chrome-gnome-shell 8-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,248 kB
  • sloc: python: 415; sh: 15; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e


case "$1" in
    remove|purge)
    ;;

    install|upgrade|failed-upgrade)
        if dpkg --compare-versions "$2" le "7.2-2"; then
            [ -e /var/lib/dpkg/info/chrome-gnome-shell.postrm ] && rm /var/lib/dpkg/info/chrome-gnome-shell.postrm
        fi
    ;;

    *)
        echo "Called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0