summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-05-03 10:43:44 +0000
committerNorbert Preining <preining@logic.at>2008-05-03 10:43:44 +0000
commit51960de8eb4b9ae0c4beec7314e4a19a415afb2a (patch)
treebb4703a61db553159363cdc64863acf0f5f7798e /Master/texmf
parent9dd95f164399b9b9cb7724b63a1c06873e99869c (diff)
check for the existence before removing
git-svn-id: svn://tug.org/texlive/trunk@7816 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 2aea411f332..8101ee9c4aa 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -808,7 +808,9 @@ sub action_uninstall {
system("rm", "-rf", "$texdir/texmf");
system("rm", "-rf", "$texdir/tlpkg");
system("rm", "-rf", "$texdir/bin");
- system("rmdir", "--ignore-fail-on-non-empty", "$texdir/temp");
+ if (-d "$texdir/temp") {
+ system("rmdir", "--ignore-fail-on-non-empty", "$texdir/temp");
+ }
unlink("$texdir/install-tl.log");
# should we do that????
system("rm", "-rf", "$texdir/texmf-config");