From: <jpa...@os...> - 2007-03-22 14:19:38
|
Author: jparpail Date: 2007-03-22 10:19:24 -0400 (Thu, 22 Mar 2007) New Revision: 5750 Modified: pkgsrc/tools/opkgc/doc/opkg-draft.xsd pkgsrc/tools/opkgc/test/opkg/config-draft.xml Log: [OPKGC] Add changelog in config.xml files. Modified: pkgsrc/tools/opkgc/doc/opkg-draft.xsd =================================================================== --- pkgsrc/tools/opkgc/doc/opkg-draft.xsd 2007-03-22 13:14:49 UTC (rev 5749) +++ pkgsrc/tools/opkgc/doc/opkg-draft.xsd 2007-03-22 14:19:24 UTC (rev 5750) @@ -72,6 +72,9 @@ <xsd:element ref="serverDeps" minOccurs="0" maxOccurs="1" /> <xsd:element ref="clientDeps" minOccurs="0" maxOccurs="1" /> <xsd:element ref="apiDeps" minOccurs="0" maxOccurs="1" /> + + <!-- Changelog --> + <xsd:element ref="changelog" minOccurs="1" maxOccurs="1" /> </xsd:sequence> </xsd:complexType> @@ -270,4 +273,39 @@ <xsd:enumeration value="x86_64" /> </xsd:restriction> </xsd:simpleType> + + <!-- Changelog --> + <xsd:element name="changelog" > + <xsd:complexType> + <xsd:sequence> + <xsd:element name="versionEntry" minOccurs="1" maxOccurs="unbounded" > + <xsd:complexType> + <xsd:sequence> + <xsd:element name="changelogEntry" minOccurs="1" maxOccurs="unbounded" /> + </xsd:sequence> + <xsd:attribute name="version" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + + <xsd:element name="changelogEntry" type="changelogEntryType" /> + <xsd:complexType name="changelogEntryType" > + <xsd:simpleContent> + <xsd:extension base="xsd:string" > + <xsd:attribute name="authorName" type="xsd:string" use="required" /> + <!-- + See format here: + http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#dateTime + --> + <xsd:attribute name="date" type="xsd:dateTime" use="required" /> + <xsd:attribute name="closes" use="required" > + <xsd:simpleType> + <xsd:list itemType="xsd:positiveInteger" /> + </xsd:simpleType> + </xsd:attribute> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> </xsd:schema> \ No newline at end of file Modified: pkgsrc/tools/opkgc/test/opkg/config-draft.xml =================================================================== --- pkgsrc/tools/opkgc/test/opkg/config-draft.xml 2007-03-22 13:14:49 UTC (rev 5749) +++ pkgsrc/tools/opkgc/test/opkg/config-draft.xml 2007-03-22 14:19:24 UTC (rev 5750) @@ -111,4 +111,21 @@ <pkg rel=">" version="0.1" >lsnipes</pkg> </requires><!-- optional --> </apiDeps><!-- optional --> + + <changelog> + <versionEntry version="2.3.6-5" > + <changelogEntry authorName="John Foo Jr." date="2006-10-29T13:20:00.000+01:00" > + - Update from upstream + - Add a little blue + </changelogEntry> + <changelogEntry authorName="John Foo" date="2006-10-28T12:54:00" closes="452 1247" > + - Fix this bug + </changelogEntry> + </versionEntry> + <versionEntry version="2.3.6-1" > + <changelogEntry authorName="Laurent Michel" date="2005-01-01T04:20:00-05:00" > + - Blurp + </changelogEntry> + </versionEntry> + </changelog> </oscar> |