summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-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 {