BLFS/xsl/process-install: make an entity for config instruction conditions
and add a condition for /opt/rustc creation
This commit is contained in:
parent
0336215926
commit
39304601fe
1 changed files with 14 additions and 10 deletions
|
@ -1,4 +1,16 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!DOCTYPE stylesheet [
|
||||||
|
<!ENTITY detect-config "contains(string($current-instr),'useradd') or
|
||||||
|
contains(string($current-instr),'groupadd') or
|
||||||
|
contains(string($current-instr),'usermod') or
|
||||||
|
contains(string($current-instr),'icon-cache') or
|
||||||
|
contains(string($current-instr),'desktop-database') or
|
||||||
|
contains(string($current-instr),'compile-schemas') or
|
||||||
|
contains(string($current-instr),'query-loaders') or
|
||||||
|
contains(string($current-instr),'pam.d') or
|
||||||
|
contains(string($current-instr),'/opt/rustc') or
|
||||||
|
contains(string($current-instr),'query-immodules')">
|
||||||
|
]>
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
@ -122,19 +134,11 @@
|
||||||
<!--============================================================-->
|
<!--============================================================-->
|
||||||
<xsl:when test="$current-instr[@role='root']">
|
<xsl:when test="$current-instr[@role='root']">
|
||||||
<!-- We have two cases, depending on the content: either a config instruction,
|
<!-- We have two cases, depending on the content: either a config instruction,
|
||||||
that we do not recorrd with porg (first case belaow), or a true install
|
that we do not record with porg (first case below), or a true install
|
||||||
instruction (otherwise below) -->
|
instruction (otherwise below) -->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<!--____________________________________________________________ -->
|
<!--____________________________________________________________ -->
|
||||||
<xsl:when test="contains(string($current-instr),'useradd') or
|
<xsl:when test="&detect-config;">
|
||||||
contains(string($current-instr),'groupadd') or
|
|
||||||
contains(string($current-instr),'usermod') or
|
|
||||||
contains(string($current-instr),'icon-cache') or
|
|
||||||
contains(string($current-instr),'desktop-database') or
|
|
||||||
contains(string($current-instr),'compile-schemas') or
|
|
||||||
contains(string($current-instr),'query-loaders') or
|
|
||||||
contains(string($current-instr),'pam.d') or
|
|
||||||
contains(string($current-instr),'query-immodules')">
|
|
||||||
<xsl:if test="$install-seen">
|
<xsl:if test="$install-seen">
|
||||||
<xsl:call-template name="end-install"/>
|
<xsl:call-template name="end-install"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
Reference in a new issue