File: postinst

package info (click to toggle)
debsums 2.0.36
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 320 kB
  • ctags: 4
  • sloc: perl: 525; sh: 81; makefile: 35
file content (20 lines) | stat: -rwxr-xr-x 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

APT_CONF=/etc/apt/apt.conf.d/90debsums

. /usr/share/debconf/confmodule
db_get debsums/apt-autogen

if [ "$RET" = true ];
then
    echo 'DPkg::Post-Invoke { "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi"; };' >$APT_CONF
else
    rm -f $APT_CONF
fi

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

#DEBHELPER#

exit 0