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

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

 



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

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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux