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

This commit is contained in:
JMARyA 2024-12-29 09:21:17 +01:00
parent 6eb3678c1c
commit 5763c8a1c4
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 4 additions and 3 deletions

View file

@ -13,3 +13,4 @@ steps:
username: jmarya
password:
from_secret: registry_token

View file

@ -89,7 +89,7 @@ impl Repository {
.ok()
}
pub fn get_pkg(&self, arch: Architecture, pkg_name: &str) -> Option<Package> {
pub fn get_pkg(&self, pkg_name: &str) -> Option<Package> {
// Normalize name
let pkg_name = if pkg_name.ends_with(".sig") {
pkg_name.trim_end_matches(".sig").to_string()
@ -98,7 +98,7 @@ impl Repository {
};
// Find package
let (name, version, _, _) = Package::extract_pkg_name(&pkg_name).unwrap();
let (name, version, _, arch) = Package::extract_pkg_name(&pkg_name).unwrap();
let pkg = Package::new(&self.name, arch, &name, &version);
// Return if exists

View file

@ -89,7 +89,7 @@ pub async fn pkg_route(repo: &str, arch: &str, pkg_name: &str, ctx: RequestConte
}
}
let pkg = repo.get_pkg(arch, pkg_name).unwrap();
let pkg = repo.get_pkg(pkg_name).unwrap();
if pkg_name.ends_with("pkg.tar.zst") {
return respond_with(