update
This commit is contained in:
parent
5ae9b80302
commit
8daef6920c
9 changed files with 158 additions and 135 deletions
|
@ -91,7 +91,7 @@ impl Package {
|
|||
}
|
||||
}
|
||||
|
||||
let mut ret: Vec<_> = ret.into_iter().map(|x| (x.0, x.1.join(" "))).collect();
|
||||
let mut ret: Vec<_> = ret.into_iter().map(|x| (x.0, x.1.join(";"))).collect();
|
||||
ret.sort_by(|a, b| a.0.cmp(&b.0));
|
||||
|
||||
ret
|
||||
|
@ -218,6 +218,15 @@ impl Package {
|
|||
.collect()
|
||||
}
|
||||
|
||||
pub fn fonts(&self) -> Vec<String> {
|
||||
let files = self.file_list();
|
||||
files
|
||||
.into_iter()
|
||||
.filter(|x| x.starts_with("usr/share/fonts"))
|
||||
.map(|x| x.trim_start_matches("usr/share/fonts/").to_string())
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn firmware(&self) -> Vec<String> {
|
||||
let files = self.file_list();
|
||||
files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue