♻️ refactor
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-03-04 19:02:05 +01:00
parent 1815d9f461
commit af7b74319a
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
8 changed files with 205 additions and 177 deletions

View file

@ -429,6 +429,20 @@ impl Package {
versions
}
pub fn pkg_content_path(&self) -> Option<String> {
if self.exists() {
return Some(
self.base_path()
.join(self.file_name())
.to_str()
.unwrap()
.to_string(),
);
}
None
}
/// Get the content of the `.pkg.tar.zst`
pub fn pkg_content(&self) -> Option<Vec<u8>> {
if self.exists() {