From 0c47d6ccd0393d457918ab80fb2b290e0d3d0a07 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Mon, 13 Jan 2025 19:51:39 +0100 Subject: [PATCH] fix mirror --- src/pkg/mirror.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pkg/mirror.rs b/src/pkg/mirror.rs index ab17993..e49a84e 100644 --- a/src/pkg/mirror.rs +++ b/src/pkg/mirror.rs @@ -48,10 +48,6 @@ impl MirrorRepository { /// Get the `.db.tar.gz` content for the repository of `arch` pub async fn db_content(&self, arch: Architecture, mirrorlist: &[String]) -> Option> { - if let Some(content) = self.inner.db_content(arch.clone()) { - return Some(content); - } - self.download_file( &format!("{}.db.tar.gz", self.inner.name), self.inner @@ -67,10 +63,6 @@ impl MirrorRepository { /// Get the `.db.tar.gz.sig` content for the repository of `arch` pub async fn sig_content(&self, arch: Architecture, mirrorlist: &[String]) -> Option> { - if let Some(content) = self.inner.sig_content(arch.clone()) { - return Some(content); - } - self.download_file( &format!("{}.db.tar.gz.sig", self.inner.name), self.inner