[elbe-devel] [PATCH 1/1] Add schema definition for initvm/project suite restriction
Bastian Germann
bage at linutronix.de
Wed Jul 24 11:55:18 CEST 2019
> From: Olivier Dion <dion at linutronix.de>
>
> If an invalid suite's name was passed in the <suite> node, then the
> build would fail with a traceback, possibly after a long period.
>
> Adding the possible suites in the XML schema allows the build to fail
> at the very beginning without a traceback.
>
> Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Bastian Germann <bage at linutronix.de>
> ---
> schema/dbsfed.xsd | 22 ++++++++++++++++++++--
> 1 file changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
> index fbed8e98..542572e9 100644
> --- a/schema/dbsfed.xsd
> +++ b/schema/dbsfed.xsd
> @@ -313,7 +313,7 @@
> </documentation>
> </annotation>
> </element>
> - <element name="suite" type="rfs:string">
> + <element name="suite" type="rfs:suite-initvm">
> <annotation>
> <documentation>
> name of the debian suite that should be used to generate the initvm.
> @@ -454,7 +454,7 @@
> </documentation>
> </annotation>
> </element>
> - <element name="suite" type="rfs:string">
> + <element name="suite" type="rfs:suite-proj">
> <annotation>
> <documentation>
> name of the debian suite that should be used to generate the
> @@ -482,6 +482,24 @@
> <attribute ref="xml:base"/>
> </complexType>
>
> + <simpleType name="suite-initvm">
> + <restriction base="string">
> + <enumeration value="bullseye" />
> + <enumeration value="buster" />
> + <enumeration value="sid" />
> + <enumeration value="stretch" />
> + </restriction>
> + </simpleType>
> +
> + <simpleType name="suite-proj">
> + <restriction base="string">
> + <enumeration value="bullseye" />
> + <enumeration value="buster" />
> + <enumeration value="sid" />
> + <enumeration value="stretch" />
> + </restriction>
> + </simpleType>
> +
> <complexType name="preference">
> <annotation>
> <documentation>
>
More information about the elbe-devel
mailing list