fix mirror
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-01-13 19:51:39 +01:00
parent 303d29bbdb
commit 0c47d6ccd0
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -48,10 +48,6 @@ impl MirrorRepository {
/// Get the `.db.tar.gz` content for the repository of `arch` /// Get the `.db.tar.gz` content for the repository of `arch`
pub async fn db_content(&self, arch: Architecture, mirrorlist: &[String]) -> Option<Vec<u8>> { pub async fn db_content(&self, arch: Architecture, mirrorlist: &[String]) -> Option<Vec<u8>> {
if let Some(content) = self.inner.db_content(arch.clone()) {
return Some(content);
}
self.download_file( self.download_file(
&format!("{}.db.tar.gz", self.inner.name), &format!("{}.db.tar.gz", self.inner.name),
self.inner self.inner
@ -67,10 +63,6 @@ impl MirrorRepository {
/// Get the `.db.tar.gz.sig` content for the repository of `arch` /// Get the `.db.tar.gz.sig` content for the repository of `arch`
pub async fn sig_content(&self, arch: Architecture, mirrorlist: &[String]) -> Option<Vec<u8>> { pub async fn sig_content(&self, arch: Architecture, mirrorlist: &[String]) -> Option<Vec<u8>> {
if let Some(content) = self.inner.sig_content(arch.clone()) {
return Some(content);
}
self.download_file( self.download_file(
&format!("{}.db.tar.gz.sig", self.inner.name), &format!("{}.db.tar.gz.sig", self.inner.name),
self.inner self.inner