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

Bug#392518: tex-common: fails to uninstall if /usr/local is mounted read-only



 "Sam Hocevar (Debian packages)" <sam+deb@zoy.org> wrote:

> Package: tex-common
> Version: 0.33
> Severity: serious
> Justification: Policy 9.1.2
>
>    Quoting policy 9.1.2:
>      Since `/usr/local' can be mounted read-only from a remote server,
>      these directories must be created and removed by the `postinst' and
>      `prerm' maintainer scripts and not be included in the `.deb' archive.
>      These scripts must not fail if either of these operations fail.
>
>    However postinst script tries to remove /usr/local/share/texmf/ls-R
> without checking for errors.

Ups. Deja vu.

I was wrongly assuming that "rm -f" would exit successfully not only
when the file doesn't exist, but also if the directory is not writable.=20=
=20

Apropos error checking.  Folks, do you think

-    rm -f /usr/local/share/texmf/ls-R
+    -rm -f /usr/local/share/texmf/ls-R 2>/dev/null

would be okay?  This will just drop and ignore all errors, but I can't
imagine any but "can't do that", and in this case we can't do anything
but just not do it.

Regards, Frank

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: