summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'metadata.xsd')
-rw-r--r--metadata.xsd8
1 files changed, 7 insertions, 1 deletions
diff --git a/metadata.xsd b/metadata.xsd
index e302211..68a7fbc 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -266,7 +266,13 @@
</xs:simpleType>
<xs:simpleType name='restrictAttrType'>
- <xs:restriction base='xs:token'/>
+ <xs:restriction base='xs:token'>
+ <!-- simplified package dependency syntax -->
+ <!-- note: 'pure' package atom is technically valid too
+ but not really meaningful -->
+ <xs:pattern
+ value="([&lt;&gt;]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?"/>
+ </xs:restriction>
</xs:simpleType>
<!-- generic types -->