commit 7910023e8cbaf9fa734409672cd5cf31120233ab
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Mon Mar 3 16:00:34 2014 +0100
schema-recipe: fix python tasks
The schema didn't accept python tasks. This commit fixes that, python
tasks can now be defined by an element:
<task python="path_to_python_task"/>
task element with the python attribute defined doesn't have any content
allowed.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
schema-recipe.rng | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/schema-recipe.rng b/schema-recipe.rng
index bd0a8df..7803849 100644
--- a/schema-recipe.rng
+++ b/schema-recipe.rng
@@ -45,16 +45,32 @@
</define>
<define name="task">
+ <choice>
+ <element name="task">
+ <attribute name="python"/>
+
+ <optional>
+ <attribute name="quit_on_fail">
+ <choice>
+ <value>yes</value>
+ <value>no</value>
+ <value>true</value>
+ <value>false</value>
+ </choice>
+ </attribute>
+ </optional>
+ </element>
+ <ref name="xml_task"/>
+ </choice>
+ </define>
+
+ <define name="xml_task">
<element name="task">
<optional>
<attribute name="label"/>
</optional>
<optional>
- <attribute name="python"/>
- </optional>
-
- <optional>
<attribute name="quit_on_fail">
<choice>
<value>yes</value>