This commit is contained in:
parent
1815d9f461
commit
af7b74319a
8 changed files with 205 additions and 177 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue