[latex3-commits] [git/LaTeX3-latex3-latex2e] gh888: Log a line when a package-load is prevented (446d1db9)
PhelypeOleinik
phelype.oleinik at latex-project.org
Fri Aug 19 04:57:55 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : gh888
Link : https://github.com/latex3/latex2e/commit/446d1db9b0b0d13aa9579ddae521591364af37b9
>---------------------------------------------------------------
commit 446d1db9b0b0d13aa9579ddae521591364af37b9
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Thu Aug 18 23:57:55 2022 -0300
Log a line when a package-load is prevented
Also fixes #888
>---------------------------------------------------------------
446d1db9b0b0d13aa9579ddae521591364af37b9
base/ltfilehook.dtx | 2 ++
base/testfiles-lthooks/github-0888.tlg | 2 ++
2 files changed, 4 insertions(+)
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index e82ae3a5..198198db 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -1518,6 +1518,8 @@
\@ifundefined{@pkg-disable@#1}%
{#2}%
{\@nameuse{@pkg-disable@#1}%
+ \@latex at info{Package '#1' has been disabled.%
+ \MessageBreak Load request ignored}%
\expandafter\@gobbletwo}}
% \end{macrocode}
%
diff --git a/base/testfiles-lthooks/github-0888.tlg b/base/testfiles-lthooks/github-0888.tlg
index 24d36c1e..2bff5bf9 100644
--- a/base/testfiles-lthooks/github-0888.tlg
+++ b/base/testfiles-lthooks/github-0888.tlg
@@ -2,3 +2,5 @@ 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 Info: Package 'testpkg.sty' has been disabled.
+ Load request ignored on input line ....
More information about the latex3-commits
mailing list.