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

Bug#207874: libkpathsea3: cannot upgrade when /usr/doc symlink to /usr/share/doc



On 30.08.03 Tim Connors (tconnors@astro.swin.edu.au) wrote:

> The -e flag means that when rm -f returns 1 in libkpathsea3.postinst
> when it can't rm the directory (because /usr/doc/tetex-lib is a
> direcory, not a symlink, because I have symlinked /usr/share/doc back
> to the old /usr/doc (which I prefer)). This breaks no other packages,
> so I presume it is a libkpathsea3 bug.
> 
> A simple workaround for me was just to remove the -e flag to sh.
> 
> #!/bin/sh
> 
> if [ "$1" = "configure" ]; then
>   ldconfig
> fi
> 
> rm -f /usr/doc/tetex-lib
> ....
> 
Debian Policy Manual
Chapter 6 - Package maintainer scripts and installation procedure

The package management system looks at the exit status from these
scripts. It is important that they exit with a non-zero status if
there is an error, so that the package management system can stop its
processing. For shell scripts this means that you almost always need
to use set -e (this is usually true when writing shell scripts, in
       ^^^^^^
fact). It is also important, of course, that they don't exit with a
non-zero status if everything went well.

so, what to do? rm -rf /usr/doc/tetex-lib? It's obsolete anyway.

H. 
-- 
sigmentation fault



Reply to: