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

Bug#528021: unowned files after purge (policy 6.8)



Holger Levsen <holger@layer-acht.org> wrote:

> This doesnt happen as you could have seen in the attached log. 

We have simply forgotten to add the line in postrm. Here's a patch:

--- postrm.in	(revision 3893)
+++ postrm.in	(working copy)
@@ -35,8 +35,9 @@
     # purge texmf.cnf which is generated by update-texmf using ucf:
     purge_ucf_file  /etc/texmf/texmf.cnf
 
-    # remove the symlink in TEXMFLOCAL
+    # remove the symlink in TEXMFLOCAL, ignoring failures if /usr/local is ro
     rm -f /usr/local/share/texmf/ls-R 2>/dev/null || true
+    rmdir --ignore-fail-on-non-empty /usr/local/share/texmf/ 2>/dev/null || true
     ;;
   *)
     ;;

There's only one corner case where this would be annoying: If /usr/local
is shared among different systems in the network, we're blowing away
ls-R for all systems, even if others still have TeX installed.

An alternative approach would be to move ls-R out of the way, and then
do

if ! rmdir /u/l/s/texmf/ 2>/dev/null; then
   mv $backup /u/l/s/texmf/ls-R
fi

However, where should we put it? 

Regards, Frank

-- 
Dr. Frank Küster
Debian Developer (TeXLive)
VCD Aschaffenburg-Miltenberg, ADFC Miltenberg
B90/Grüne KV Miltenberg



Reply to: