summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r--Master/tlpkg/TeXLive/TLMedia.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLMedia.pm b/Master/tlpkg/TeXLive/TLMedia.pm
index 94d331af14a..15908aa3ef8 100644
--- a/Master/tlpkg/TeXLive/TLMedia.pm
+++ b/Master/tlpkg/TeXLive/TLMedia.pm
@@ -19,7 +19,11 @@ sub new
my ($class, $location) = @_;
my $media;
# of no argument is given we assume NET and default URL
- $location = "$TeXLiveURL" unless (defined($location));
+ if (!defined($location)) {
+ return;
+ }
+ # no default by itself ...
+ # $location = "$TeXLiveURL" unless (defined($location));
# do media autodetection
if ($location =~ m,http://|ftp://,) {
$media = 'NET';