[latex3-commits] [git/LaTeX3-latex3-latex2e] gh888: Don't check provided version when disabled (4510aac5)

PhelypeOleinik phelype.oleinik at latex-project.org
Fri Aug 19 04:49:36 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh888
Link       : https://github.com/latex3/latex2e/commit/4510aac5a93fc42664fa3e4e427ad0ce726a3a85

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

commit 4510aac5a93fc42664fa3e4e427ad0ce726a3a85
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Aug 18 23:49:36 2022 -0300

    Don't check provided version when disabled
    
    Fixes #888


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

4510aac5a93fc42664fa3e4e427ad0ce726a3a85
 base/ltfilehook.dtx                    | 6 ++++--
 base/testfiles-lthooks/github-0888.tlg | 5 -----
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 8b5e9825..e82ae3a5 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -1515,8 +1515,10 @@
 %
 %    \begin{macrocode}
 \def\@disable at packageload@do#1#2{%
-  \@ifundefined{@pkg-disable@#1}{#2}%
-     {\@nameuse{@pkg-disable@#1}}}
+  \@ifundefined{@pkg-disable@#1}%
+     {#2}%
+     {\@nameuse{@pkg-disable@#1}%
+      \expandafter\@gobbletwo}}
 %    \end{macrocode}
 %
 %   \cs{reenable at package@load} undefines
diff --git a/base/testfiles-lthooks/github-0888.tlg b/base/testfiles-lthooks/github-0888.tlg
index b973d492..24d36c1e 100644
--- a/base/testfiles-lthooks/github-0888.tlg
+++ b/base/testfiles-lthooks/github-0888.tlg
@@ -2,8 +2,3 @@ This is a generated file for the l3build validation system.
 Don't change this file in any respect.
 LaTeX Info: Writing file `./testpkg.sty'.
 Hi, I'm disabl-o!
-LaTeX Warning: You have requested, on input line ..., version
-               `....-..-..' of package testpkg,
-               but only version
-               `\ver at testpkg.sty '
-               is available.





More information about the latex3-commits mailing list.