diff --git a/src/repository/mod.rs b/src/repository/mod.rs index 8363716..6c4b5a5 100644 --- a/src/repository/mod.rs +++ b/src/repository/mod.rs @@ -228,6 +228,7 @@ impl Repository { fn remove_gone_remote_bundle(&mut self, bundle: BundleInfo) -> Result<(), RepositoryError> { if let Some(id) = self.bundle_map.find(&bundle.id) { info!("Removing bundle from index: {}", bundle.id); + try!(self.index.filter(|_key, data| data.bundle != id)); self.bundle_map.remove(id); } Ok(())