mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Merge pull request #259 from rustic-rs/fix-repair-index
fix repair index
This commit is contained in:
commit
ff1bdd6d6a
@ -118,7 +118,7 @@ async fn repair_index(be: &impl DecryptFullBackend, opts: IndexOpts) -> Result<(
|
||||
match (changed, opts.dry_run) {
|
||||
(true, true) => info!("would have modified index file {index_id}"),
|
||||
(true, false) => {
|
||||
if !new_index.packs.is_empty() && !new_index.packs_to_delete.is_empty() {
|
||||
if !new_index.packs.is_empty() || !new_index.packs_to_delete.is_empty() {
|
||||
be.save_file(&new_index).await?;
|
||||
}
|
||||
be.remove(FileType::Index, &index_id, true).await?;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user