Addition to package-info

Started by AzaToth, October 07, 2005, 07:52:46 PM

Previous topic - Next topic

AzaToth

Made this DTD addition for package-info, what do you think?
<!--
For the following:
The attribute 'href' is a address to a downloadable version of specified package.
Attribute 'name' does not have to mach the package, but is needed to tell user which package.
'id' must match the id of the package.
-->
<!-- A package that this package depends upon  -->
<!ELEMENT depends EMPTY>
<!ATTLIST depend id CDATA #REQUIRED>
<!ATTLIST depend name CDATA #REQUIRED>
<!ATTLIST depend version CDATA #IMPLIED>
<!ATTLIST depend href CDATA #IMPLIED>

<!-- A package that can not coexist with this package -->
<!ELEMENT conflicts EMPTY>
<!ATTLIST conflict id CDATA #REQUIRED>
<!ATTLIST conflict name CDATA #REQUIRED>
<!ATTLIST conflict version CDATA #IMPLIED>
<!-- A package that can interact with this package -->
<!ELEMENT recommends EMPTY>
<!ATTLIST suggest id CDATA #REQUIRED>
<!ATTLIST suggest name CDATA #REQUIRED>
<!ATTLIST require version CDATA #IMPLIED>
<!ATTLIST suggest href CDATA #IMPLIED>
<!-- A package that will be replaced by this package (automatic uninstall) -->
<!ELEMENT replaces EMPTY>
<!ATTLIST replace id CDATA #REQUIRED>
<!ATTLIST replace name CDATA #REQUIRED>

Elmacik

#1
very nice and usefull ;)
this will help to prevent conflickts and most of the mod-caused errors i think
maybe it should check both the installations and existing but not installed packages..
Home of Elmacik

Advertisement: