summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-09-08 15:19:03 +0000
committerNorbert Preining <preining@logic.at>2008-09-08 15:19:03 +0000
commitc5c54faf5e6017b26a5bdcd50bab4faeb110d5aa (patch)
tree057b13c95f10ded2b6219ca53c30b4c2be24106c
parentead351835b5f00cc87875e7229e5967e2f904d03 (diff)
make tlmgr unify the location with Cwd::abs_path so that / and \ (and
probably some other things) are treated correctly. git-svn-id: svn://tug.org/texlive/trunk@10489 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 012859a2f00..6a29a46133c 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -836,6 +836,8 @@ sub action_option {
# changes the default location
my $loc = shift @ARGV;
if ($loc) {
+ # normalize the path
+ $loc = abs_path($loc);
print "Setting default installation source to $loc!\n";
$localtlpdb->option_location($loc);
$localtlpdb->save;
@@ -1034,6 +1036,8 @@ sub init_local_db {
if (!defined($location)) {
die("No installation source found, nor in the texlive.tlpdb nor on the cmd line.\nPlease specify one!");
}
+ # normalize the location
+ $location = abs_path($location);
}
sub action_gui {