From 182e63837a51cc32b5a37b536018837a26da79aa Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Thu, 28 Jul 2022 07:15:00 +0200 Subject: [PATCH] prune: fix --repack-cacheable-onle in combination with ..reoack-compressed --- src/commands/prune.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/prune.rs b/src/commands/prune.rs index 1f19197..058223d 100644 --- a/src/commands/prune.rs +++ b/src/commands/prune.rs @@ -469,7 +469,11 @@ impl Pruner { (false, 1.., 0) => { // used pack self.stats.packs.used += 1; - if too_young || !repack_uncompressed || pack.is_compressed() { + if too_young + || !repack_uncompressed + || pack.is_compressed() + || repack_cacheable_only && !pack.blob_type.is_cacheable() + { pack.set_todo(PackToDo::Keep, &pi, &mut self.stats); } else { self.repack_candidates.push((pi, index_num, pack_num));