3 . /usr/share/debconf/confmodule
8 if [ "$1" = configure ] \
9 && dpkg --compare-versions "$2" lt "$DEBIAN_VERSION"; then
10 # Installing for the first time or upgrading.
11 # To comply with the Ion trademark licence terms, we must ensure
12 # that this version is up-to-date or that the user acknowledges
13 # it is not. I freely admit that this is a horrible abuse of
14 # debconf, but it seems slightly less unpleasant than maintaining
15 # a renamed version. - benh
16 uscan_output=$(uscan 2>&1 --no-conf --report-status \
17 --package ion3 --upstream-version "$UPSTREAM_VERSION" \
18 --watchfile /usr/share/ion3/debian/watch)
19 case "$uscan_output" in
24 question=ion3/acknowledge-outdated
27 question=ion3/acknowledge-maybe-outdated
30 if [ -n "$question" ]; then
31 db_fset $question seen false
32 db_subst $question version $UPSTREAM_VERSION
33 db_input high $question || true
36 if [ "$RET" != true ]; then
37 db_input high ion3/did-not-acknowledge-outdated || true
44 if [ -h /etc/X11/ion3/draw.lua ]; then
45 rm -f /etc/X11/ion3/draw.lua
48 ln -s look_clean.lua /etc/X11/ion3/draw.lua
50 update-alternatives --install /usr/bin/ion ion /usr/bin/ion3 29 \
51 --slave /usr/share/man/man1/ion.1.gz ion.1.gz \
52 /usr/share/man/man1/ion3.1.gz
54 update-alternatives --install \
55 /usr/bin/x-window-manager x-window-manager /usr/bin/ion3 49 \
56 --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
57 /usr/share/man/man1/ion3.1.gz
59 update-alternatives --install \
60 /usr/bin/x-window-manager x-window-manager /usr/bin/pwm3 48 \
61 --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz \
62 /usr/share/man/man1/pwm3.1.gz
65 inst=/etc/menu-methods/ion3-i18n
72 # Remove the old now-renamed generated Debian menu
73 rm -f /var/lib/ion3/debian-menus.lua