On Sun, 6 May 2007 17:35:42 -0400, Joey Hess <[EMAIL PROTECTED]> said:
> Could you give me an easy way to reproduce this, or just the verbatim > text that ucf asks debconf to display? > My guess is that this is probably a bug in Text::Wrap. Here is what I did. ,---- | sudo apt-get --download-only install lm-sensors | cd /tmp | dpkg-deb -x /var/cache/apt/archives/lm-sensors_1%3a2.10.3-1_i386.deb root | cp root/usr/share/lm-sensors/sensors.conf.eg /tmp/ | sudo ucf --state-dir /tmp /tmp/sensors.conf.eg /tmp/foo | cp /tmp/sensors.conf.eg /tmp/sensors.conf.new | vim /tmp/sensors.conf.new # Changed a few '# *$' into ' ' | sudo ucf --state-dir /tmp /tmp/sensors.conf.new /tmp/foo `---- Now, all ucf is really doing is: ,---- | DIFF="$( sdiff -BbW "/tmp/foo" "/tmp/sensors.conf.new")" | templ=ucf/show_diff | db_capb escape | db_reset $templ | db_subst $templ DIFF "$(printf %s "$DIFF" | debconf-escape -e)" | db_input critical $templ || true | db_go | db_get $templ | db_capb `---- ,---- | Template: ucf/show_diff | Type: note | _Description: The differences | ${DIFF} `---- manoj -- Nobody knows what goes between his cold toes and his warm ears. Roy Harper Manoj Srivastava <[EMAIL PROTECTED]> <http://www.debian.org/~srivasta/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]