From c5c54faf5e6017b26a5bdcd50bab4faeb110d5aa Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 8 Sep 2008 15:19:03 +0000 Subject: 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 --- Master/texmf/scripts/texlive/tlmgr.pl | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- cgit v1.2.3