summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r--Master/tlpkg/TeXLive/TLPDB.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLPDB.pm b/Master/tlpkg/TeXLive/TLPDB.pm
index 073d0a9574a..f3ead7180bd 100644
--- a/Master/tlpkg/TeXLive/TLPDB.pm
+++ b/Master/tlpkg/TeXLive/TLPDB.pm
@@ -41,6 +41,7 @@ C<TeXLive::TLPDB> -- A database of TeX Live Packages
$tlpdb->config_src_container;
$tlpdb->config_doc_container;
$tlpdb->config_container_format;
+ $tlpdb->config_release;
TeXLive::TLPDB->listdir([$dir]);
$tlpdb->generate_listfiles([$destdir]);
@@ -636,6 +637,24 @@ sub config_container_format {
return "";
}
+=item C<< $tlpdb->config_release >>
+
+Returns the currently set release. See Options below.
+
+=cut
+
+sub config_release {
+ my $self = shift;
+ if (defined($self->{'tlps'}{'00texlive.config'})) {
+ foreach my $d ($self->{'tlps'}{'00texlive.config'}->depends) {
+ if ($d =~ m!^release/(.*)$!) {
+ return "$1";
+ }
+ }
+ }
+ return "";
+}
+
=pod
=item C<< $tlpdb->fmtutil_cnf_lines >>