SUSE / machinery

A systems management toolkit for Linux
GNU General Public License v3.0
158 stars 32 forks source link

Do not extract Metadata for missing unmanaged files #2198

Closed thardeck closed 7 years ago

thardeck commented 7 years ago

Make sure that files exist before extracting the metadata and remove them from the unmanaged-files list if not.

This should allow filtering to work properly because the filters are applied before extraction so it is possible for the user to filter directories with changing files. Before that machinery-helper could crash if a file was removed during the first phase of inspection and there was no way for the user to filter these directories because the helper does not support filtering yet.

thardeck commented 7 years ago

To test it you can run the following command inside a managed repository:

for i in `seq 1 600`; do touch "$i"; sleep 1; rm "$i"; done
manno commented 7 years ago

LGTM