make repomirror a little easier to use

This commit is contained in:
brent s 2020-07-23 14:26:36 -04:00
parent 6e9042f023
commit 9b5b460496
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
3 changed files with 10 additions and 1 deletions

View File

@ -16,6 +16,10 @@
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>


<xs:complexType name="e_repomir_ignoreExit">
<xs:attribute name="returns" type="t_repomir_returnCodeList" use="required"/>
</xs:complexType>

<!-- Commented out; we don't bother with SSH variants. See also e_repomir_upstream --> <!-- Commented out; we don't bother with SSH variants. See also e_repomir_upstream -->
<!-- <!--
<xs:complexType name="e_repomir_sync_proto"> <xs:complexType name="e_repomir_sync_proto">
@ -43,7 +47,7 @@
<xs:element name="port" minOccurs="0" type="t_net_port"/> <xs:element name="port" minOccurs="0" type="t_net_port"/>
<xs:element name="path" minOccurs="1" type="t_unix_dirpath"/> <xs:element name="path" minOccurs="1" type="t_unix_dirpath"/>
</xs:all> </xs:all>
<xs:attribute name="delayCheck" type="xs:duration" use="optional" default="P0Y0M2DT0H0M0S"/> <xs:attribute name="delayCheck" type="xs:duration" use="optional"/>
</xs:complexType> </xs:complexType>


</xs:schema> </xs:schema>

View File

@ -3,6 +3,10 @@
elementFormDefault="qualified" elementFormDefault="qualified"
attributeFormDefault="unqualified"> attributeFormDefault="unqualified">


<xs:simpleType name="t_repomir_returnCodeList">
<xs:list itemType="xs:integer"/>
</xs:simpleType>

<xs:simpleType name="t_repomir_synctype"> <xs:simpleType name="t_repomir_synctype">
<xs:restriction base="xs:token"> <xs:restriction base="xs:token">
<xs:enumeration value="rsync"/> <xs:enumeration value="rsync"/>

View File

@ -28,6 +28,7 @@
<xs:element name="mountCheck" type="t_unix_dirpath" minOccurs="1"/> <xs:element name="mountCheck" type="t_unix_dirpath" minOccurs="1"/>
<xs:element name="owner" type="e_repomir_owner" minOccurs="0"/> <xs:element name="owner" type="e_repomir_owner" minOccurs="0"/>
<xs:element name="rsyncArgs" minOccurs="0" maxOccurs="1" type="t_unix_args"/> <xs:element name="rsyncArgs" minOccurs="0" maxOccurs="1" type="t_unix_args"/>
<xs:element name="rsyncIgnore" minOccurs="0" maxOccurs="1" type="e_repomir_ignoreExit"/>
</xs:choice> </xs:choice>
</xs:sequence> </xs:sequence>
<xs:attribute name="name" type="xs:ID" use="required"/> <xs:attribute name="name" type="xs:ID" use="required"/>