[Libosinfo] [osinfo-db] install-script, opensuse: Add omit-xml-declaration to the output format

Fabiano Fidêncio fidencio at redhat.com
Fri Apr 21 08:37:37 UTC 2017


Without this change the output got from the command-line template will
look like "<?xml version=1> autoyast=device://sda/autoinst.xml" while
what we actually expect is just "autoyast=device://sda/autoinst.xml".

It's been the faulty part that caused problems with Tumbleweed and Leap
42.2 installations.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in | 2 +-
 data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
index 75fc74d..6554eb6 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
@@ -31,7 +31,7 @@
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         version="1.0">
 
-        <xsl:output method="xml" indent="yes"/>
+        <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
 
         <xsl:template name="l10n-language">
           <xsl:choose>
diff --git a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
index fb42c50..0079cc5 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
@@ -22,7 +22,7 @@
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         version="1.0">
 
-        <xsl:output method="xml" indent="yes"/>
+        <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
 
         <xsl:template name="l10n-language">
           <xsl:choose>
-- 
2.9.3




More information about the Libosinfo mailing list