Bug#368411: tex-common keeps asking the question about group on each upgrade
On Mon, 22 Mai 2006, Frank Küster wrote:
> > on each upgrade of the tex-common package, i'm being asked the same
> > question over and over again: "Group that should own the TeX font cache"?
> > It seems that the answer is not properly remembered by the configuration.
>
> I've noticed that, too. I thought I had properly catered for the
> renaming:
>
> # The groupname question has been split up, but it need not be shown again
> db_fget tex-common/groupname seen || true
> if [ "$RET" = true ]; then
> db_fset tex-common/groupname_single seen true || true
> db_fset tex-common/groupname_multi seen true || true
> fi
> db_unregister tex-common/groupname || true
Suggest solution, but I may be wrong (doesn't debconf check the seen
flag by itself???) but thedebconf debug shows:
...
debconf (developer): <-- INPUT medium tex-common/groupname_multi
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO
...
evn after the third try of dpkg-reconfigure tex-common.
Index: config.in
===================================================================
--- config.in (Revision 1371)
+++ config.in (Arbeitskopie)
@@ -43,7 +43,12 @@
# The groupname question has been split up, but it need not be shown again
db_fget tex-common/groupname seen || true
-if [ "$RET" = true ]; then
+RETA="$RET"
+db_fget tex-common/groupname_single seen || true
+RETB="$RET"
+db_fget tex-common/groupname_multi seen || true
+RETC="$RET"
+if [ "$RETA" = true ] || [ "$RETB" = true ] || [ "$RETC" = true ] ; then
db_fset tex-common/groupname_single seen true || true
db_fset tex-common/groupname_multi seen true || true
fi
@@ -128,8 +133,11 @@
groupname_variant=single
fi
while true; do
- db_input $cache_debconf_priority tex-common/groupname_$groupname_variant || true
- db_go || true
+ db_fget tex-common/groupname_$groupname_variant seen || true
+ if [ "$RET" = false ] ; then
+ db_input $cache_debconf_priority tex-common/groupname_$groupname_variant || true
+ db_go || true
+ fi
db_get tex-common/groupname_$groupname_variant || true
GROUP="$RET"
# now check whether the returned group name exists. This time, we can't rely on
Please comment.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at> Università di Siena
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
GREAT TOSSON (n.)
A fat book containing four words and six cartoons which cost £6.95.
--- Douglas Adams, The Meaning of Liff
Reply to: