File: libopenblas-dev.preinst

package info (click to toggle)
openblas 0.2.19-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 44,272 kB
  • ctags: 76,509
  • sloc: asm: 1,086,998; ansic: 186,055; fortran: 74,181; makefile: 11,187; perl: 3,428; python: 661; sh: 81
file content (18 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

set -e

# In 0.2.8-4, /usr/lib/openblas-base/libopenblas.so was renamed to
# /usr/lib/openblas-base/libblas.so. It is therefore necessary to remove the
# old path from the alternatives system before adding the new.
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 0.2.8-4
then
    update-alternatives --remove libblas.so /usr/lib/openblas-base/libopenblas.so 2>/dev/null
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0