Le 16.05.2008 19:09:37, Julien BLACHE a écrit : >"Jean-Luc Coulon (f5ibh)" <[EMAIL PROTECTED]> wrote: > >Hi, > >> ++ exec /usr/share/debconf/frontend >/var/lib/dpkg/info/sane-utils.postinst configure 1.0.19-6
Why do I get 1.0.19-6 whiile configuring 1.0.19-9? > >Yeah, right. Must source the debconf confmodule right at the start of >the postinst. > >Just so I don't make another upload for nothing, does it work OK if >you move the confmodule sourcing right after the set -e ? > I've modified the postinst script according to you request and get the same (about) error. Attached the output. Regards Jean-Luc
[EMAIL PROTECTED] % sudo dpkg --configure -a
Setting up sane-utils (1.0.19-9) ...
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/sane-utils.postinst
configure 1.0.19-6
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ '[' configure = configure ']'
+ getent passwd
+ grep -q '^saned:'
+ '[' -x /usr/sbin/update-inetd ']'
+ update-inetd --add '#<off>#
sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned'
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
#<off># sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
Suggested entry (automatically converted using itox):
-----------------------------------------------------------
+ SANED_DEFAULT=/etc/default/saned
+ db_get sane-utils/saned_run
+ _db_cmd 'GET sane-utils/saned_run'
+ IFS=' '
+ printf '%s\n' 'GET sane-utils/saned_run'
+ IFS='
'
+ read -r _db_internal_line
+ RET='20 Unsupported command "" (full line was "") received from confmodule.'
+ case ${_db_internal_line%%[ ]*} in
+ return 20
dpkg: error processing sane-utils (--configure):
subprocess post-installation script returned error exit status 20
Errors were encountered while processing:
sane-utils
[EMAIL PROTECTED] %
pgpAplnbqq1IM.pgp
Description: PGP signature

