|
#!/bin/sh |
|
set -e |
|
|
|
if [ -z "$DEBIAN_HAS_FRONTEND" ] && [ "$1" = configure ] && [ -n "$2" ] && \ |
|
dpkg --compare-versions "$2" lt 1.1.0; then |
|
|
|
if dpkg --compare-versions "$2" lt 0.9.00; then |
|
if [ -e /var/lib/debconf/config.db -o -e /var/lib/debconf/templates.db ]; then |
|
/usr/share/debconf/transition_db.pl |
|
fi |
|
|
|
|
|
|
|
if [ ! -s /etc/apt/apt.conf ]; then |
|
rm -f /etc/apt/apt.conf |
|
fi |
|
fi |
|
|
|
|
|
if dpkg --compare-versions "$2" lt 1.0.25; then |
|
/usr/share/debconf/fix_db.pl |
|
fi |
|
|
|
|
|
|
|
if dpkg --compare-versions "$2" lt 1.1.0 && |
|
perl -e 'use Debconf::Db; Debconf::Db->load; for (@ARGV) { exit 1 unless |
|
Debconf::DbDriver->driver($_) }' config passwords; then |
|
|
|
debconf-copydb config passwords |
|
|
|
debconf-copydb config newconfig \ |
|
-c Name:newconfig \ |
|
-c Driver:File \ |
|
-c Reject-Type:password \ |
|
-c Filename:/var/cache/debconf/newconfig.dat \ |
|
-c Mode:644 |
|
mv -f /var/cache/debconf/newconfig.dat /var/cache/debconf/config.dat |
|
fi |
|
fi |
|
|
|
. /usr/share/debconf/confmodule |
|
|
|
if [ "$1" = configure ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.3.11; then |
|
|
|
|
|
|
|
|
|
if dpkg --compare-versions "$2" lt 0.9.50; then |
|
rm -rf /var/lib/debconf |
|
fi |
|
|
|
|
|
if dpkg --compare-versions "$2" lt 0.9.73; then |
|
|
|
db_unregister foo/bar || true |
|
db_unregister debconf/switch-to-slang || true |
|
fi |
|
if dpkg --compare-versions "$2" lt 1.3.11; then |
|
db_unregister debconf/showold || true |
|
fi |
|
|
|
|
|
if dpkg --compare-versions "$2" lt 1.0.10; then |
|
db_get debconf/frontend || true |
|
if [ "$RET" = Text ]; then |
|
db_set debconf/frontend Readline || true |
|
fi |
|
fi |
|
fi |
|
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/debconf 1.5.58~ -- "$@" |
|
|
|
|
|
|