adding stuff for better sync timestamp checking in repomirror

This commit is contained in:
brent s 2020-07-23 23:15:53 -04:00
parent 9b5b460496
commit 6bdf8e55f2
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
2 changed files with 12 additions and 2 deletions

View File

@ -35,10 +35,19 @@
<xs:simpleContent>
<xs:extension base="t_unix_filepath">
<xs:attribute name="timeFormat" type="xs:string" use="optional" default="UNIX_EPOCH"/>
<xs:attribute name="offset" type="xs:integer" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>

<xs:complexType name="e_repomir_remote_tstmp_file">
<xs:complexContent>
<xs:extension base="e_repomir_tstmp_file">
<xs:attribute name="mtime" type="xs:boolean" use="optional" default="false"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<xs:complexType name="e_repomir_upstream">
<xs:all minOccurs="1">
<!-- <xs:element name="syncType" type="e_repomir_sync_proto" minOccurs="1"/> -->
@ -48,6 +57,7 @@
<xs:element name="path" minOccurs="1" type="t_unix_dirpath"/>
</xs:all>
<xs:attribute name="delayCheck" type="xs:duration" use="optional"/>
<xs:attribute name="offset" type="xs:duration" use="optional"/>
</xs:complexType>

</xs:schema>

View File

@ -23,8 +23,8 @@
<xs:element name="dest" type="t_unix_dirpath" minOccurs="1" maxOccurs="1"/>
<xs:element name="lastLocalCheck" type="e_repomir_tstmp_file" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="lastLocalSync" type="e_repomir_tstmp_file" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="lastRemoteUpdate" type="e_repomir_tstmp_file" minOccurs="0" maxOccurs="1"/>
<xs:element name="lastRemoteSync" type="e_repomir_tstmp_file" minOccurs="0" maxOccurs="1"/>
<xs:element name="lastRemoteUpdate" type="e_repomir_remote_tstmp_file" minOccurs="0" maxOccurs="1"/>
<xs:element name="lastRemoteSync" type="e_repomir_remote_tstmp_file" minOccurs="0" maxOccurs="1"/>
<xs:element name="mountCheck" type="t_unix_dirpath" minOccurs="1"/>
<xs:element name="owner" type="e_repomir_owner" minOccurs="0"/>
<xs:element name="rsyncArgs" minOccurs="0" maxOccurs="1" type="t_unix_args"/>