diff options
-rw-r--r-- | samples/repositories.xml | 6 | ||||
-rw-r--r-- | schema/repositories.dtd | 7 | ||||
-rw-r--r-- | schema/repositories.rng | 10 | ||||
-rwxr-xr-x | write-layman-global-txt.py | 2 |
4 files changed, 23 insertions, 2 deletions
diff --git a/samples/repositories.xml b/samples/repositories.xml index 77ce0ad..f97877d 100644 --- a/samples/repositories.xml +++ b/samples/repositories.xml @@ -4,6 +4,12 @@ quality="experimental" status="unofficial"> <description>Gentoo overlay of Sebastian Pipping</description> + <longdescription lang="en"> + Quick-bumps and stuff that I should move to sunrise + </longdescription> + <longdescription lang="de"> + Quick-bumps und Ebuilds, die eigentlich ins Sunrise-Overlay gehören + </longdescription> <homepage>http://git.goodpoint.de/?p=overlay-sping.git;a=summary</homepage> <owner type="person"> <email>sebastian@pipping.org</email> diff --git a/schema/repositories.dtd b/schema/repositories.dtd index e5d5d23..11a124e 100644 --- a/schema/repositories.dtd +++ b/schema/repositories.dtd @@ -13,7 +13,7 @@ xmlns CDATA #FIXED '' version CDATA #FIXED '1.0'> -<!ELEMENT repo (description,(homepage)?,owner,(source)+,(feed)*)> +<!ELEMENT repo (description,(longdescription)*,(homepage)?,owner,(source)+,(feed)*)> <!ATTLIST repo xmlns CDATA #FIXED '' name CDATA #REQUIRED @@ -25,6 +25,11 @@ <!ATTLIST description xmlns CDATA #FIXED ''> +<!ELEMENT longdescription (#PCDATA)> +<!ATTLIST longdescription + xmlns CDATA #FIXED '' + lang CDATA #IMPLIED> + <!ELEMENT homepage (#PCDATA)> <!ATTLIST homepage xmlns CDATA #FIXED ''> diff --git a/schema/repositories.rng b/schema/repositories.rng index 111d9a2..5f7efb9 100644 --- a/schema/repositories.rng +++ b/schema/repositories.rng @@ -47,6 +47,16 @@ <element name="description"> <text/> </element> + <zeroOrMore> + <element name="longdescription"> + <optional> + <attribute name="lang"> + <text/> + </attribute> + </optional> + <text/> + </element> + </zeroOrMore> <optional> <element name="homepage"> <data type="anyURI"/> diff --git a/write-layman-global-txt.py b/write-layman-global-txt.py index 8f69f1e..54b0ab3 100755 --- a/write-layman-global-txt.py +++ b/write-layman-global-txt.py @@ -40,7 +40,7 @@ for repo in repositories: del repo.attrib[att_name] # Kill unsupported tags - for tag_name in ('feed', 'source'): + for tag_name in ('feed', 'source', 'longdescription'): for o in repo.findall(tag_name): repo.remove(o) |