[Libosinfo] [osinfo-db PATCH 1/2] install-script, centos: Fix distro comparision
Fabiano Fidêncio
fidencio at redhat.com
Fri Jul 12 12:53:24 UTC 2019
We have to single-quote centos, otherwise the test for the os/distro
will always fail.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
data/install-script/redhat.com/rhel-kickstart-desktop.xml.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
index 3a3a370..7bfaf6e 100644
--- a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
@@ -136,7 +136,7 @@
<xsl:when test="tree/url != ''">
<xsl:value-of select="tree/url"/>
</xsl:when>
- <xsl:when test="os/distro = centos">
+ <xsl:when test="os/distro = 'centos'">
<xsl:text>http://mirror.centos.org/centos/</xsl:text>
<xsl:call-template name="version"/>
<xsl:text>/os/</xsl:text>
--
2.21.0
More information about the Libosinfo
mailing list