[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#336951: Install tex-common gives warning about chgrp



Hilmar Preusse <hille42@web.de> wrote:

> # first we collect those ls-R files which are group writeable in gwritetrue
> # and those which are not group writeable in gwritefalse
> # furthermore we save the respective group and write permission in
> # ${i}group
>> 
> Some informatins are collected here.
>
> # now we save the list of group writeable ls-R files to tex-common/managedlsr
> db_set tex-common/managedlsr $gwritetrue || true

By the way, this is the reason why "cache" isn't displayed even if it is
supposed to be the default.  We should perform this action only if the
files already exist.

> iscommongroup is set to -1. Hence we have to assume the test will be
> successful every time. $SELECTED_LSR contains a list of ls-R files,
> in this case "cache". ${i} has the value "cache" upon first run (see
> above). The value of tmp is a combination of the value of i and
> "group".
>
>
> preusse@preusse ~ $ i=a
> preusse@preusse ~ $ eval tmp=${i}group
> preusse@preusse ~ $ echo $tmp
> agroup

This was what was intended:

frank@alhambra:~$ i=a
frank@alhambra:~$ agroup=users
frank@alhambra:~$ eval tmp=\$${i}group
frank@alhambra:~$ echo $tmp
users

> , which is fed to debconf finally. Maybe I'm completely wrong, but
> this code seems very broken to me.

It's just one missing dollar.  Rather cheap... ;-)

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer




Reply to: