summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg')
-rw-r--r--Master/tlpkg/TeXLive/TLPDB.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLPDB.pm b/Master/tlpkg/TeXLive/TLPDB.pm
index 5d3066bc8b3..27f3835b646 100644
--- a/Master/tlpkg/TeXLive/TLPDB.pm
+++ b/Master/tlpkg/TeXLive/TLPDB.pm
@@ -58,6 +58,7 @@ C<TeXLive::TLPDB> -- A database of TeX Live Packages
$tlpdb->config_doc_container;
$tlpdb->config_container_format;
$tlpdb->config_release;
+ $tlpdb->config_maxrelease;
$tlpdb->config_revision;
$tlpdb->options;
$tlpdb->option($key, [$value]);
@@ -940,6 +941,27 @@ sub config_release {
=pod
+=item C<< $tlpdb->config_maxrelease >>
+
+Returns the currently allowed maximal release. See Options below.
+
+=cut
+
+sub config_maxrelease {
+ my $self = shift;
+ if (defined($self->{'tlps'}{'00texlive.config'})) {
+ foreach my $d ($self->{'tlps'}{'00texlive.config'}->depends) {
+ if ($d =~ m!^maxrelease/(.*)$!) {
+ return "$1";
+ }
+ }
+ }
+ return;
+}
+
+
+=pod
+
=item C<< $tlpdb->config_revision >>
Returns the currently set revision. See Options below.