XML catalogue of packages which are available for installation, using the mingw-get installer.
Revision | 731fb9020de36498cb24599cb551045b356e451c (tree) |
---|---|
Time | 2017-07-24 17:53:26 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Pre-empt facility to support package visibility attributes.
@@ -1,3 +1,10 @@ | ||
1 | +2017-07-24 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Pre-empt facility to support package visibility attributes. | |
4 | + | |
5 | + * tests/pkgspec.xsd (visibility-attribute): New XML type; define it. | |
6 | + (package, component-specification) [visibility="hidden"]: Accept it. | |
7 | + | |
1 | 8 | 2017-07-16 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 9 | |
3 | 10 | Upgrade mingw32-mpc package to version 1.0.3. |
@@ -6,7 +6,7 @@ | ||
6 | 6 | XSDL schema for validation of mingw-get package specifications. |
7 | 7 | |
8 | 8 | Written by Keith Marshall <keithmarshall@users.sourceforge.net> |
9 | - Copyright (C) 2013, MinGW.org Project | |
9 | + Copyright (C) 2013, 2017, MinGW.org Project | |
10 | 10 | |
11 | 11 | |
12 | 12 | This file is part of the mingw-dist catalogue validation suite. |
@@ -272,10 +272,17 @@ | ||
272 | 272 | </xs:sequence> |
273 | 273 | <!-- |
274 | 274 | Each package MUST be named; it may also be assigned to the class |
275 | - of "virtual" packages, so identifying it as a meta-package, and it | |
276 | - may also be identified by a list of aliases. | |
275 | + of "virtual" packages, so identifying it as a meta-package, may | |
276 | + be identified by a list of aliases, and may also be marked as | |
277 | + intended to be hidden from the user interface. (Note that, if | |
278 | + both class="virtual" and visibility="hidden" are specified, an | |
279 | + intent is implied to both conceal the package from the user, and | |
280 | + to suppress any record of its installation; this feature, which | |
281 | + is intended to facilitate forced dependency resolution, is not | |
282 | + currently supported by mingw-get). | |
277 | 283 | --> |
278 | 284 | <xs:attribute name="name" type="xs:string" use="required" /> |
285 | + <xs:attribute name="visibility" type="visibility-attribute" /> | |
279 | 286 | <xs:attribute name="class" type="package-class" /> |
280 | 287 | <xs:attribute name="alias" type="xs:string" /> |
281 | 288 | </xs:complexType> |
@@ -301,6 +308,19 @@ | ||
301 | 308 | </xs:restriction> |
302 | 309 | </xs:simpleType> |
303 | 310 | |
311 | + <xs:simpleType name="visibility-attribute"> | |
312 | + <!-- | |
313 | + Any package, or package component, may be marked with a visibility of | |
314 | + "hidden", indicating that mingw-get should not show it within the user | |
315 | + interface; (if specified, this attribute MUST have a value of "hidden"; | |
316 | + it should normally be omitted entirely, for any package or component | |
317 | + which is to be visible within the user interface). | |
318 | + --> | |
319 | + <xs:restriction base="xs:string"> | |
320 | + <xs:pattern value="hidden" /> | |
321 | + </xs:restriction> | |
322 | + </xs:simpleType> | |
323 | + | |
304 | 324 | <xs:complexType name="component-specification"> |
305 | 325 | <!-- |
306 | 326 | Each "package" should be subdivided into one or more "component" packages, |
@@ -319,9 +339,12 @@ | ||
319 | 339 | </xs:choice> |
320 | 340 | <!-- |
321 | 341 | Every "component" package MUST be classified; however, the choice of |
322 | - "class" name is unrestricted. | |
342 | + "class" name is unrestricted. Additionally, any component package may | |
343 | + be marked with the visibility="hidden" attribute, (although this will | |
344 | + be ignored if the component delivers installable content). | |
323 | 345 | --> |
324 | 346 | <xs:attribute name="class" type="xs:string" use="required" /> |
347 | + <xs:attribute name="visibility" type="visibility-attribute" /> | |
325 | 348 | </xs:complexType> |
326 | 349 | |
327 | 350 | <xs:complexType name="release-specification"> |