File: python3-cairosvg.preinst

package info (click to toggle)
cairosvg 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,032 kB
  • sloc: python: 2,983; sh: 8; makefile: 6; javascript: 1
file content (13 lines) | stat: -rwxr-xr-x 221 bytes parent folder | download | duplicates (5)
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#