summary: Warn on missing packages during typesetting

This restores the previous behavior (from before a couple commits ago), but
adds a warning.

We have a GitLab pipeline internally where we break apart certain
directories into separate jobs to parallelize them.  There is a bug relating
to build and retaining artifacts for rate tables that only manifests itself
for Summary Pages, and that needs to be resolved before this is removed.

DEV-15153
main
Mike Gerwitz 2023-10-20 16:24:26 -04:00
parent 2770ee95ed
commit bbe775d870
1 changed files with 10 additions and 1 deletions

View File

@ -167,9 +167,18 @@
<xsl:text>...</xsl:text> <xsl:text>...</xsl:text>
</xsl:message> </xsl:message>
<xsl:variable name="pkg" as="element()" <xsl:variable name="pkg"
select="document( concat( @src, '.xmlo' ), . )/lv:*" /> select="document( concat( @src, '.xmlo' ), . )/lv:*" />
<!-- TODO: We ought to just put @as on the variable above, once any
bugs relating to missing build artifacts are resolved in
build pipelines -->
<xsl:if test="not( $pkg )">
<xsl:message select="concat(
'[summary] warning: missing package: ',
@src )" />
</xsl:if>
<xsl:apply-templates select="$pkg/lv:*" /> <xsl:apply-templates select="$pkg/lv:*" />
</xsl:for-each-group> </xsl:for-each-group>