Merge pull request #5842 from braewoods/master

create --dry-run: fix display of kept tagfile, fixes #5834
This commit is contained in:
TW 2021-06-16 15:07:51 +02:00 committed by GitHub
commit da7dd388ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -791,8 +791,9 @@ class Archiver:
# if we are already recursing in an excluded dir, we do not need to do anything else than
# returning (we do not need to archive or recurse into tagged directories), see #3991:
if not recurse_excluded_dir:
if keep_exclude_tags and not dry_run:
fso.process_dir_with_fd(path=path, fd=child_fd, st=st)
if keep_exclude_tags:
if not dry_run:
fso.process_dir_with_fd(path=path, fd=child_fd, st=st)
for tag_name in tag_names:
tag_path = os.path.join(path, tag_name)
self._rec_walk(