[latex3-commits] [git/LaTeX3-latex3-latex2e] gh569: Throw an error when a date 0000/00/00 is misused in \IncludeInRelease (11c512f6)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Aug 10 05:44:49 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh569
Link       : https://github.com/latex3/latex2e/commit/11c512f6c41d096a39743e22bffaacbdf9fd2d6a

>---------------------------------------------------------------

commit 11c512f6c41d096a39743e22bffaacbdf9fd2d6a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Aug 10 00:44:49 2021 -0300

    Throw an error when a date 0000/00/00 is misused in \IncludeInRelease


>---------------------------------------------------------------

11c512f6c41d096a39743e22bffaacbdf9fd2d6a
 base/changes.txt |  5 +++++
 base/ltvers.dtx  | 12 +++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index d6294f0f..569a63a7 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-08-10  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltvers.dtx (section{Version Identification}):
+	Throw an error when a date 0000/00/00 is misused in \IncludeInRelease.
+
 2021-08-09  Phelype Oleinik  <phelype.oleinik at latex-project.org>
 
 	* ltcmd.dtx (subsubsection{Copying a command and its internal structure}):
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 9ccd2bd0..f8ba6591 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltvers.dtx}
-             [2021/04/16 v1.1g LaTeX Kernel (Version Info)]
+             [2021/08/10 v1.1h LaTeX Kernel (Version Info)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltvers.dtx}
@@ -230,6 +230,7 @@
 % \changes{v1.0o}{2015/01/19}{Optional argument}
 % \changes{v1.0q}{2015/02/19}{Swap argument order}
 % \changes{v1.1f}{2021/03/18}{Add support for usage in \cs{NewModuleRelease}}
+% \changes{v1.1h}{2021/08/10}{Add error to aid debugging}
 %
 %    \begin{macrocode}
 %<*2ekernel|latexrelease>
@@ -257,6 +258,15 @@
       {\@IncludeInRelease{#1}[#1]}}}
 \def\finish at module@release#1#2#3{%
   \toks@{[#1] #3}%
+  \begingroup
+    \edef\x{\detokenize\expandafter{\new at modulename}}%
+    \edef\y{\detokenize{#2}}%
+  \expandafter\endgroup
+  \ifx\x\y \else
+    \@latex at error{\noexpand\IncludeInRelease dated #1 in a module is not
+      allowed.\MessageBreak Use a date at least equal to \new at moduledate
+      \space for complete rollback}\@ehd
+  \fi
   \ifnum\expandafter\@parse at version\new at moduledate//00\@nil
        >\expandafter\@parse at version\fmtversion//00\@nil
     \GenericInfo{}{Applying: \the\toks@}%





More information about the latex3-commits mailing list.