Package: tgif                            
Version: 1:4.2.3-1

Hello,

upgrading or re-installing the tgif package constantly grows
/etc/default/tgif by always adding another "debconf block".

In the postinst it seems like you are trying to avoid this with the sed
statement but you would probably like to use `sed -i' instead.

I'm just curious: why do you prefer an (obviously :)) error-prone
self-made legacy hack over ucf?
Something like
        tempfile=$(mktemp -p /tmp tgif.XXXXXXXX)
        cat >$tempfile <<-EOT
                ! 
                Tgif*InitialPaperSize: $paper
                Tgif*GridSystem: $gridunits
                !
        EOT
        ucf --debconf-ok $tempfile /etc/default/tgif
        ucfr tgif /etc/default/tgif
        rm -f $tempfile
in the postinst configure section, and
        rm -f /etc/default/tgif
        if which ucf >/dev/null; then
                ucf --purge /etc/default/tgif
        fi
        if which ucfr >/dev/null; then
                ucfr --purge tgif /etc/default/tgif 
        fi
in the postrm purge section should do the trick (both untested!) and
you get all the additional comfort ucf offers about dealing with
user-modified conf-files for free.


Thanks for your work & best regards
   Mario
-- 
Whenever you design a better fool-proof software,
the genetic pool will always design a better fool.

Attachment: signature.asc
Description: Digital signature

Reply via email to