mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-16 16:23:51 +01:00
feat: readd pkgfile (slowdown due to missing db)
This commit is contained in:
parent
03c103d010
commit
678b569652
1 changed files with 5 additions and 4 deletions
|
|
@ -99,10 +99,11 @@ pub fn get_packages(data: &mut Data, package_manager: &str, executable: &str) ->
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"pacman" => {
|
"pacman" => {
|
||||||
// somehow it tries to always update, so very slow
|
let result = if data.has_executable("pkgfile") {
|
||||||
// let result = if data.has_executable("pkgfile") {
|
command_output(shell, &format!("pkgfile -b {}", executable))
|
||||||
// command_output(shell, &format!("pkgfile -b {}", executable))
|
} else{
|
||||||
let result = command_output(shell, &format!("pacman -Fq /usr/bin/{}", executable));
|
command_output(shell, &format!("pacman -Fq /usr/bin/{}", executable))
|
||||||
|
};
|
||||||
if result.is_empty() {
|
if result.is_empty() {
|
||||||
return None
|
return None
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue