mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Merge pull request #85 from rustic-rs/prune-fix-cacheable
prune: fix --repack-cacheable-only in combination with --repack-uncompressed
This commit is contained in:
commit
bc1e5564f0
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user