severity 584137 important tags 584137 + patch confirmed pending quit On Wed, Jun 02, 2010 at 07:15:00PM +0400, alexander barakin wrote: > while debugging script /usr/share/debconf/confmodule i see output of line > echo 'Adding SV inittab entry...' > from /var/lib/dpkg/info/runit.postinst in variable _db_internal_line: > "20 Unsupported command "adding" (full line was "Adding SV inittab > entry...") received from confmodule." > > i do not understand why it happens but removing this line corrects the > situation. > patch is attached.
Thank you, alexander. I overlooked this. When using debconf, maintainer scripts should not print to stdout. From debconf-devel(7): Avoid outputting anything to stdout in your postinst, since that can confuse debconf, and postinst should not be verbose anyway. Output to stderr is ok, if you must. Regards, Gerrit. > diff -Naur old/runit.postinst new/runit.postinst > --- old/runit.postinst 2010-06-02 14:20:46.000000000 +0000 > +++ new/runit.postinst 2010-06-02 14:23:36.000000000 +0000 > @@ -35,7 +35,6 @@ > fi > > if ! grep '^SV:' /etc/inittab >/dev/null; then > - echo 'Adding SV inittab entry...' > cp /etc/inittab /etc/inittab'{new}' > cat >>/etc/inittab'{new}' <<-\EOT > #-- runit begin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org