File: config

package info (click to toggle)
apt-listchanges 2.83
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 632 kB
  • ctags: 107
  • sloc: python: 690; makefile: 107; sh: 66
file content (35 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
#!/bin/sh -e

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

db_input medium apt-listchanges/frontend || true
db_input low apt-listchanges/save-seen || true
db_input low apt-listchanges/email-address || true

if [ "$1" = "configure" ]; then
    if [ -n "$2" ] && dpkg --compare-versions "$2" le 2.51; then
        # Preserve behaviour for users upgrading from older versions
        db_set apt-listchanges/which both
    fi
fi

db_input low apt-listchanges/which || true
db_go

db_get apt-listchanges/frontend
case "$RET" in
    none|mail)
        db_set apt-listchanges/confirm "false"
        ;;
    *)
        db_input low apt-listchanges/confirm || true
        db_go
        ;;
esac

# Clean up questions we used to ask
# 2.3 and earlier
db_unregister apt-listchanges/apt-hook-p || true

exit 0