File: python-yubico.preinst

package info (click to toggle)
python-yubico 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 550
  • sloc: python: 2,367; ansic: 128; sh: 5; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

set -e

# This was added by stdeb to workaround Debian #479852. In a nutshell,
# pycentral does not remove normally remove its symlinks on an
# upgrade. Since we're using python-support, however, those symlinks
# will be broken. This tells python-central to clean up any symlinks.
if [ -e /var/lib/dpkg/info/python-yubico.list ] && which pycentral >/dev/null 2>&1
then
    pycentral pkgremove python-yubico
fi

#DEBHELPER#