File: config

package info (click to toggle)
darkstat 3.0.708-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 708 kB
  • ctags: 592
  • sloc: ansic: 5,326; sh: 322; makefile: 131
file content (18 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule

if [ "$1" = "configure" -a "$2" != "" ]; then
    if dpkg --compare-versions "$2" lt "3.0.707-1" ; then
     	db_input medium "darkstat/upgrade-question/db_purge-2.5-1" || true
    fi

    db_go
fi

db_get darkstat/upgrade-question/db_purge-2.5-1 || true
if [ "$RET" = "false" ] ; then
    # user has decided not to upgrade, installation stop here, package not configured.
    false
fi