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

This commit is contained in:
JMARyA 2024-12-27 05:22:23 +01:00
parent 6a6941789f
commit 9ed46ba9fb
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -95,12 +95,19 @@ impl Package {
}
pub fn find(repo: &str, arch: &str, pkg_name: &str) -> Self {
Package {
let mut base = Package {
repo: repo.to_string(),
arch: arch.to_string(),
name: pkg_name.to_string(),
version: None,
}
};
let versions = base.versions();
let ver = versions.first().unwrap();
base.version = Some(ver.clone());
base
}
pub fn save(&self, pkg: Vec<u8>, sig: Option<Vec<u8>>) {