Bug#422473: [Debconf-devel] Processed: Re: Bug#422473: ucf: locked up on displaying a side-by-side diff

Manoj Srivastava srivasta at debian.org
Sun May 6 22:22:15 UTC 2007


On Sun, 6 May 2007 17:35:42 -0400, Joey Hess <joeyh at debian.org> 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 <srivasta at debian.org> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C




More information about the Debconf-devel mailing list