Debian Codegraph @

debian/preinst

raw
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" = install ] || [ "$1" = upgrade ]
6 then
7 dpkg-divert --add --package libcpanplus-perl --rename \
8 --divert /usr/bin/cpanp.bundled /usr/bin/cpanp
9 dpkg-divert --add --package libcpanplus-perl --rename \
10 --divert /usr/bin/cpan2dist.bundled /usr/bin/cpan2dist
11 dpkg-divert --add --package libcpanplus-perl --rename \
12 --divert /usr/bin/cpanp-run-perl.bundled /usr/bin/cpanp-run-perl
13
14 # this diversion is needed even if we don't actually ship cpan*.1.gz,
15 # because otherwise it takes precedence over cpan*.1p.gz (which we do
16 # ship)
17 dpkg-divert --add --package libcpanplus-perl --rename \
18 --divert /usr/share/man/man1/cpanp.bundled.1.gz /usr/share/man/man1/cpanp.1.gz
19 dpkg-divert --add --package libcpanplus-perl --rename \
20 --divert /usr/share/man/man1/cpan2dist.bundled.1.gz /usr/share/man/man1/cpan2dist.1.gz
21 fi
22
23 # dh_installdeb will replace this with shell code automatically
24 # generated by other debhelper scripts.
25
26 #DEBHELPER#
27
28 exit 0