#!/bin/sh -e
#----------------------------------------------------------------
# Simple `.config' script for zope-* packages.
# First coded by Luca - De Whiskey's - De Vitis <luca@debian.org>
#----------------------------------------------------------------

# Load the confmodule.
. /usr/share/debconf/confmodule

# Setup.
db_version 2.0
db_capb backup

pkg="zope-parsedxml"
# Get the answer about the common behaviour.
db_get "shared/zope/restart" || true
when="$RET"
case "$when" in
	configuring|end|manually) # Set the behaviour accordingly. 
		db_set "${pkg}/zope/restart" "$when" || true
		db_fset "${pkg}/zope/restart" "seen" "true" || true
	;;
	product) # Prompt the question to the user.
		db_input low "${pkg}/zope/restart" || true
		db_go
	;;
esac

# Stop the communication with the db.
db_stop

# That's all folks!
exit 0
