render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c401cc
From c5384b4113cee0f343c782a01b9717fc04991e1a Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <c5384b4113cee0f343c782a01b9717fc04991e1a@dist-git>
c401cc
From: Martin Kletzander <mkletzan@redhat.com>
c401cc
Date: Wed, 26 Feb 2014 14:54:17 +0100
c401cc
Subject: [PATCH] build: Don't fail on '< ' or '> ' with old xmllint
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=1032370
c401cc
c401cc
Older xmllint version don't allow such characters in datatype anyURI.
c401cc
In order not to change too much, I'm suggesting making a choice of
c401cc
anyURI or 'absPathName' which should be fine (checked with upstream
c401cc
and that old xmllint, both work fine).
c401cc
c401cc
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
c401cc
(cherry picked from commit d96b08bb240fecc89c96e31ddada59fd04ee9574)
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 docs/schemas/storagevol.rng | 5 ++++-
c401cc
 1 file changed, 4 insertions(+), 1 deletion(-)
c401cc
c401cc
diff --git a/docs/schemas/storagevol.rng b/docs/schemas/storagevol.rng
c401cc
index 8bc5907..5da8e1f 100644
c401cc
--- a/docs/schemas/storagevol.rng
c401cc
+++ b/docs/schemas/storagevol.rng
c401cc
@@ -105,7 +105,10 @@
c401cc
     <element name='target'>
c401cc
       <optional>
c401cc
         <element name='path'>
c401cc
-          <data type='anyURI'/>
c401cc
+          <choice>
c401cc
+            <data type='anyURI'/>
c401cc
+            <ref name='absFilePath'/>
c401cc
+          </choice>
c401cc
         </element>
c401cc
       </optional>
c401cc
       <ref name='format'/>
c401cc
-- 
c401cc
1.9.0
c401cc