summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-11-18 03:49:01 +0000
committerNorbert Preining <preining@logic.at>2009-11-18 03:49:01 +0000
commit17ee36c1805fbbbd8174c38c36b78de954114f3b (patch)
treea91dc77e7e5b4ed3db2317c76d8a50ebe61c31f3 /Master/texmf
parentfc7529ed47c54da855d6e7adb64625dc3cb02fbb (diff)
try to remove empty ROOT/bin/$arch directories after tlmgr arch remove
git-svn-id: svn://tug.org/texlive/trunk@16061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 2df72ffcbb2..7ef87afaf17 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -2908,6 +2908,12 @@ sub action_arch {
}
}
if (!$opts{"dry-run"}) {
+ # try to remove bin/$a dirs
+ for my $a (@todoarchs) {
+ if (!rmdir("$Master/bin/$a")) {
+ tlwarn("binary directory $Master/bin/$a not empty after removal of $a.\n");
+ }
+ }
# update the option("available_architectures") list of installed archs
my @larchs = $localtlpdb->setting("available_architectures");
my @newarchs;