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

Bug#354517: Include additional checks in update-language



On Mit, 01 Mär 2006, Frank Küster wrote:
> On the other hand, for a Debian utility like update-language (I know,
> update-fontlang) it makes sense to make just a simple check - this would
> catch errors that are more specific to Debian and its modularized setup:
> Buggy packages; people who mix up installation into TEXMFHOME and
> TEXMFLOCAL, etc.

sic

> +        if [ -z $(kpsewhich -format=tex $hyph) ] ; then
> +           cat >&2 <<EOF
> +The config file $fn references a file not in the kpathsea database:
> +    $hyph
> +This may be ok, but it could also be a typing error.
> +EOF
> +        fi
> +    done
> 
> This means that if update-* is called before mktexlsr, there will be
> that spurious warning.  But in many cases it doesn't make sense to move
> mktexlsr earlier, because it must be called "in the end" anyway.

I consider update-* WITH the option --check NOT suitable to be put into
a postinst script.

I would consider it only as a QA check when testing packages, or when a
sysadmin wants to check his local changes, or whatever.

So this - for me - is not a problem. I would recommend NOT to use
--check in maintainer scripts, exactely due to what you mentioned.

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
-------------------------------------------------------------------------------
THRUMSTRER (n.)
The irritating man next to you in a concert who thinks he's (a) the
conductor, (b) the brass section.
			--- Douglas Adams, The Meaning of Liff



Reply to: