[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libosinfo] [osinfo-db PATCH 1/2] install-script, centos: Fix distro comparision



We have to single-quote centos, otherwise the test for the os/distro
will always fail.

Signed-off-by: Fabiano Fidêncio <fidencio 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]