This commit is contained in:
parent
6eb3678c1c
commit
5763c8a1c4
3 changed files with 4 additions and 3 deletions
|
@ -13,3 +13,4 @@ steps:
|
|||
username: jmarya
|
||||
password:
|
||||
from_secret: registry_token
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue