File: libxml-foo-perl.postinst

package info (click to toggle)
libxml-sax-perl 0.99%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 556 kB
  • ctags: 218
  • sloc: perl: 2,374; sh: 127; xml: 121; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
## ----------------------------------------------------------------------
## debian/postinst : postinstallation script for libxml-foo-perl
## ----------------------------------------------------------------------
## This file is provided as an example for packages providing a
## SAX parser. See /usr/share/doc/libxml-sax-perl/README.Debian.gz .
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
set -e

## ----------------------------------------------------------------------
if [ "$1" = configure ]
then
    if [ -n "$2" ] && dpkg --compare-versions "$2" lt x.x-x
    then
        update-perl-sax-parsers --remove XML::FOO
    fi

    update-perl-sax-parsers --add XML::FOO --priority 60
    update-perl-sax-parsers --update
fi

## ---------------------------------------------------------------------- 
## automatically generated debhelper commands
#DEBHELPER#

exit 0

## ----------------------------------------------------------------------