summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLConfFile.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/TeXLive/TLConfFile.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLConfFile.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/tlpkg/TeXLive/TLConfFile.pm b/Master/tlpkg/TeXLive/TLConfFile.pm
index 17233ca201f..01567d602b2 100644
--- a/Master/tlpkg/TeXLive/TLConfFile.pm
+++ b/Master/tlpkg/TeXLive/TLConfFile.pm
@@ -237,12 +237,14 @@ sub save
#
sub parse_config_file {
my ($file, $cc, $sep) = @_;
+ my @data;
if (!open(CFG, "<$file")) {
- return;
+ @data = ();
+ } else {
+ @data = <CFG>;
+ chomp(@data);
+ close(CFG);
}
- my @data = <CFG>;
- chomp(@data);
- close(CFG);
my %config = ();
$config{'file'} = $file;