RKrahl / archive-tools

Tools for managing archives
Apache License 2.0
1 stars 2 forks source link

archive-tool check should ignore metadata #25

Closed RKrahl closed 5 years ago

RKrahl commented 5 years ago

The command archive-tool check takes an archive and a list of files as argument and checks if these files are in the archive. But an archive also contains a manifest file that itself is not considered to belong to the content of the archive. This has the confusing effect that any directory that results from extracting an archive contains a file that archive-tool check reports to be not in the archive:

$ tar xfj archive.tar.bz2
$ archive-tool check archive.tar.bz2 archive
archive/.manifest.yaml

This is particularly unfortunate, because the output of archive-tool check was intended to be useful to create incremental archives. But the manifest file cannot be added to an archive:

$ archive-tool create --basedir=archive archive-v2.tar.bz2 `archive-tool check archive.tar.bz2 archive`
archive-tool create: error: cannot add archive/.manifest.yaml: this filename is reserved