File: python3-cairosvg.preinst

package info (click to toggle)
cairosvg 2.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,040 kB
  • sloc: python: 2,979; sh: 14; makefile: 5; javascript: 1
file content (13 lines) | stat: -rwxr-xr-x 221 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

if [ ! "$2" = "" ]; then
  if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
    if dpkg --compare-versions $2 lt 2; then
      update-alternatives --remove-all cairosvg
    fi
  fi
fi

#DEBHELPER#