summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-09-12 18:17:35 +0000
committerNorbert Preining <preining@logic.at>2008-09-12 18:17:35 +0000
commit875b88c33a220d13aa48b66bd198467dfdf91887 (patch)
tree633759f9f998faf444552aa353af3821bf613b02 /Master
parent905d27c949cd9c26f54470efdd6a90bb6cea9092 (diff)
fix location setting calling abs_path on url ... bummer
git-svn-id: svn://tug.org/texlive/trunk@10574 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index fe58e770d6c..840fff48f12 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -842,7 +842,11 @@ sub action_option {
my $loc = shift @ARGV;
if ($loc) {
# normalize the path
- $loc = abs_path($loc);
+ # if it is an
+ my $testloc = abs_path($loc);
+ # however, if we were given a url, that will get "normalized" to the
+ # empty string, it not being a path. Restore the original value if so.
+ $loc = $testloc if $testloc;
print "Setting default installation location to $loc!\n";
$localtlpdb->option_location($loc);
$localtlpdb->save;