summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-10-06 08:27:19 +0000
committerNorbert Preining <preining@logic.at>2008-10-06 08:27:19 +0000
commit9976b952eb3ec8d610d7b5992a7fde4c7c34ff95 (patch)
treee7ddb5f8176667bbfb63a7f78d2fbb06f91b1808 /Master/tlpkg/TeXLive
parent33eb7fc87d71a6d89e14b19dee32b634815c8bd2 (diff)
better error messages when TLPDB cannot be loaded
git-svn-id: svn://tug.org/texlive/trunk@10868 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r--Master/tlpkg/TeXLive/TLPDB.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLPDB.pm b/Master/tlpkg/TeXLive/TLPDB.pm
index e3fa244396b..3caabf25ca3 100644
--- a/Master/tlpkg/TeXLive/TLPDB.pm
+++ b/Master/tlpkg/TeXLive/TLPDB.pm
@@ -272,7 +272,14 @@ sub from_file {
}
} until (!$ret);
if (!$found) {
- tlwarn("Cannot read any package from $path, seems not to be a TLPDB!");
+ if ($path =~ m/^http|ftp/i) {
+ tlwarn("Bad URL, ");
+ } else {
+ tlwarn("Bad path, ");
+ }
+ tlwarn("cannot read any package from\n");
+ tlwarn("\t$path\n");
+ tlwarn("seems not to be a TLPDB!\n");
}
# remove the un-lzma-ed tlpdb file from temp dir
# THAT IS RACY!!! we should fix that in some better way with tempfile