Re: How to get the filename of files in an archive correctly?
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
Hello, got it, thanks! Cheers, Denis On 06/05/2021 21:53, Stefan Hammerl via Dar-support wrote: > Hello, > > I've proposed a pull request on github. > > Greetings, > Stefan > > Am Mi., 5. Mai 2021 um 22:02 Uhr schrieb Denis Corbin <[email protected]>: >> >> On 05/05/2021 15:13, Stefan Hammerl via Dar-support wrote: >>> Hello, >> >> Hello, >> >>> >>> while using the XML output works very well I am getting validation errors. >>> I am validating against dar-catalog.dtd in catalog format version 1.2 >>> (which I found here: >>> https://fossies.org/linux/privat/dar-2.7.0.tar.gz/dar-2.7.0/doc/dar-catalog.dtd?m=t) >>> . The parser complains about missing required attributes. >>> For example I have the following dar list output (of a differential archive): >>> <Catalog format="1.2"> >>> </File> >>> <File name="" >>> "> >>> <Attributes data="deleted" metadata="absent" user="" group="" >>> permissions="" atime="" mtime="1620218204" ctime="" /> >>> </File> >>> </Catalog> >>> >>> and in the DTD: >>> [...] >>> <!ELEMENT File (Attributes)> >>> <!ATTLIST File name CDATA #REQUIRED> <!-- string, entry >>> name --> >>> <!ATTLIST File size CDATA #REQUIRED> <!-- decimal, file >>> size in bytes --> >>> <!ATTLIST File stored CDATA "" > <!-- decimal, stored >>> size in bytes --> >>> <!ATTLIST File crc CDATA "" > <!-- hexadecimal, crc >>> sum of file --> >>> <!ATTLIST File dirty CDATA #REQUIRED> <!-- string, whether >>> file changed during backup --> >>> <!ATTLIST File sparse CDATA #REQUIRED> <!-- string, whether >>> file is sparse --> >>> <!ATTLIST File delta_sig CDATA #REQUIRED> <!-- string, whether >>> delta signature is present --> >>> <!ATTLIST File patch_base_crc CDATA ""> <!-- hexadecimal, crc >>> sum of the delta patch when present --> >>> <!ATTLIST File patch_result_crc CDATA ""> <!-- hexadecimal, crc >>> sum of the delta patch resulting file when present --> >>> [...] >>> >>> Given these parameters the parser consequently complains about missing >>> attributes "size", "dirty", "sparse" and "delta_sig". >>> >>> The easiest way for me to fix that as a workaround is to remove the >>> #required annotation in the DTD. >> >> Thank you for this feedback, this seems to be an error in the DTD: >> the "deleted" entries do not have to have these "size", "dirty", >> "sparse" nor "delta_sig" attributes. >> >> I thing you did the good thing, I will fix it that way or if you prefer, >> you can send me a patch or propose a pull request on github, >> >> Let me know, >> >> >>> >>> Best regards, >>> Stefan >>> >> >> Cheers, >> Denis >> > >
OpenPGP_signature
(application/pgp-signature, 840 B) - not displayed