Selaa lähdekoodia

Merge pull request #5842 from braewoods/master

create --dry-run: fix display of kept tagfile, fixes #5834
TW 4 vuotta sitten
vanhempi
sitoutus
da7dd388ca
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      src/borg/archiver.py

+ 3 - 2
src/borg/archiver.py

@@ -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(