File: libclojure-java.preinst

package info (click to toggle)
clojure 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,704 kB
  • sloc: java: 43,177; xml: 599; sh: 68; makefile: 50
file content (12 lines) | stat: -rw-r--r-- 238 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if [ "$1" = "upgrade" ]; then
    if dpkg --compare-versions "$2" "lt" "1.9.0-3" \
            && update-alternatives --query clojure 2> /dev/null ; then
	update-alternatives --remove-all clojure
    fi
fi

#DEBHELPER#