mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-16 08:13:52 +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" => {
|
||||
// somehow it tries to always update, so very slow
|
||||
// let result = if data.has_executable("pkgfile") {
|
||||
// command_output(shell, &format!("pkgfile -b {}", executable))
|
||||
let result = command_output(shell, &format!("pacman -Fq /usr/bin/{}", executable));
|
||||
let result = if data.has_executable("pkgfile") {
|
||||
command_output(shell, &format!("pkgfile -b {}", executable))
|
||||
} else{
|
||||
command_output(shell, &format!("pacman -Fq /usr/bin/{}", executable))
|
||||
};
|
||||
if result.is_empty() {
|
||||
return None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue