From 797126277ca068707c2e7983a7e240f291f95a3a Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Sat, 22 Apr 2023 21:02:42 +0200 Subject: [PATCH] backup: fix dir stats --- changelog/new.txt | 1 + src/archiver/tree_archiver.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/new.txt b/changelog/new.txt index d389443..a8f5e52 100644 --- a/changelog/new.txt +++ b/changelog/new.txt @@ -4,6 +4,7 @@ Breaking changes: Bugs fixed: - restore: Warm-up options given by the command line didn't work. This has been fixed. +- backup showed 1 dir as changed when backing up without parent. This has been fixed. New features: - prune: Added option --repack-all diff --git a/src/archiver/tree_archiver.rs b/src/archiver/tree_archiver.rs index 83786cc..7c8ff34 100644 --- a/src/archiver/tree_archiver.rs +++ b/src/archiver/tree_archiver.rs @@ -129,7 +129,7 @@ impl TreeArchiver { pub fn finalize(mut self, parent_tree: Option) -> Result<(Id, SnapshotSummary)> { let parent = match parent_tree { - None => ParentResult::NotMatched, + None => ParentResult::NotFound, Some(id) => ParentResult::Matched(id), }; let id = self.backup_tree(&PathBuf::new(), parent)?;