Skip to content

Commit

Permalink
[api] extend distribution list RNG with architecture element.
Browse files Browse the repository at this point in the history
This will allow OBS 2.5 to have architectures defined per repository and not globally anymore.
  • Loading branch information
adrianschroeter committed Jun 12, 2013
1 parent 82def3c commit f0db023
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api/api/distributions.rng
Expand Up @@ -35,6 +35,9 @@
<element name="reponame">
<text/>
</element>
<zeroOrMore>
<ref name="architecture-element"/>
</zeroOrMore>
<zeroOrMore>
<ref name="icon-element"/>
</zeroOrMore>
Expand All @@ -44,6 +47,11 @@
</interleave>
</element>
</define>
<define ns="" name="architecture-element">
<element name="architecture">
<ref name="build-arch" />
</element>
</define>
<define ns="" name="icon-element">
<element name="icon">
<optional>
Expand Down
6 changes: 6 additions & 0 deletions docs/api/api/distributions.xml
Expand Up @@ -4,6 +4,10 @@
<project>openSUSE:11.0</project>
<repository>standard</repository>
<reponame>openSUSE_11.0</reponame>
<architecture>i586</architecture>
<architecture>x86_64</architecture>
<architecture>ppc</architecture>
<architecture>ppc64</architecture>
<icon width="8" url="http://opensuse.org/static/os11logo8.png"/>
<icon width="16" height="16" url="http://opensuse.org/static/os11logo16.png"/>
<link>http://www.opensuse.org</link>
Expand All @@ -22,6 +26,8 @@
<project>Fedora:9</project>
<reponame>Fedora_9</reponame>
<repository>standard</repository>
<architecture>i586</architecture>
<architecture>x86_64</architecture>
<icon height="8" url="http://opensuse.org/static/fed9logo8.png"/>
<icon width="16" height="16" url="http://opensuse.org/static/fed9logo16.png"/>
<link>http://www.fedoraproject.org</link>
Expand Down

0 comments on commit f0db023

Please sign in to comment.