• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XML catalogue of packages which are available for installation, using the mingw-get installer.


Commit MetaInfo

修订版731fb9020de36498cb24599cb551045b356e451c (tree)
时间2017-07-24 17:53:26
作者Keith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Pre-empt facility to support package visibility attributes.

更改概述

差异

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
18 2017-07-16 Keith Marshall <keithmarshall@users.sourceforge.net>
29
310 Upgrade mingw32-mpc package to version 1.0.3.
--- a/tests/pkgspec.xsd
+++ b/tests/pkgspec.xsd
@@ -6,7 +6,7 @@
66 XSDL schema for validation of mingw-get package specifications.
77
88 Written by Keith Marshall <keithmarshall@users.sourceforge.net>
9- Copyright (C) 2013, MinGW.org Project
9+ Copyright (C) 2013, 2017, MinGW.org Project
1010
1111
1212 This file is part of the mingw-dist catalogue validation suite.
@@ -272,10 +272,17 @@
272272 </xs:sequence>
273273 <!--
274274 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).
277283 -->
278284 <xs:attribute name="name" type="xs:string" use="required" />
285+ <xs:attribute name="visibility" type="visibility-attribute" />
279286 <xs:attribute name="class" type="package-class" />
280287 <xs:attribute name="alias" type="xs:string" />
281288 </xs:complexType>
@@ -301,6 +308,19 @@
301308 </xs:restriction>
302309 </xs:simpleType>
303310
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+
304324 <xs:complexType name="component-specification">
305325 <!--
306326 Each "package" should be subdivided into one or more "component" packages,
@@ -319,9 +339,12 @@
319339 </xs:choice>
320340 <!--
321341 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).
323345 -->
324346 <xs:attribute name="class" type="xs:string" use="required" />
347+ <xs:attribute name="visibility" type="visibility-attribute" />
325348 </xs:complexType>
326349
327350 <xs:complexType name="release-specification">