Bug#271603: missing Depends
tags 271603 + patch
tags 271603 + pending
stop
On 14.09.04 LaMont Jones (lamont@mmjgroup.com) wrote:
> On Tue, Sep 14, 2004 at 10:04:40AM +0200, Hilmar Preusse wrote:
Hi .*,
> > I've attached a preliminary patch, which checks for kpsewhich.
> > Problem: What does happen, if I do an "test -f $CUR" and CUR is not
> > set? Will the postin fail?
>
> Assuming you have set -e like a good maintainer, yes.
>
I guess, he'll just tell me, that he won't check for anything and
hence won't fail in any case....
> Couldn't the whole block from KPSEWHICH_LDAT=... to the next ^fi
> go inside of the if [ -x /usr/bin/kpsewhich ]??
>
patch attached. I can't check it thoroughly. Anybody else willing to
do it? Any volunteers for the upload?
Thanks,
Hilmar
--
sigmentation fault
--- postinst.orig 2004-09-14 22:23:51.000000000 +0200
+++ postinst 2004-09-15 00:06:39.046875000 +0200
@@ -86,9 +86,11 @@
# in language.dat, we have to fix this.
# Where is language.dat (or is it not yet anywhere)?
-KPSEWHICH_LDAT=`kpsewhich --progname=tex language.dat` || true
-CUR_LDAT=`readlink -f $KPSEWHICH_LDAT 2>/dev/null` || true
-if [ -f "$CUR_LDAT" ]; then
+if [ -x /usr/bin/kpsewhich ]; then
+ KPSEWHICH_LDAT=`kpsewhich --progname=tex language.dat` || true
+ CUR_LDAT=`readlink -f $KPSEWHICH_LDAT 2>/dev/null` || true
+fi
+if test -n "$CUR_LDAT" && test -f "$CUR_LDAT"; then
# There is a language.dat yet
if grep "ukhyphen.tex" $CUR_LDAT | grep -v ^% >/dev/null; then # &2 is not redirected on purpose
if ! kpsewhich ukhyphen.tex >/dev/null; then
Reply to: