mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
improvement: replacing subprocess commands to detected installed CLIs by Python faster native calls (shutil.which)
This commit is contained in:
@@ -2649,9 +2649,8 @@ class ArchManager(SoftwareManager):
|
||||
|
||||
return res
|
||||
|
||||
def _is_wget_available(self):
|
||||
res = run_cmd('which wget')
|
||||
return res and not res.strip().startswith('which ')
|
||||
def _is_wget_available(self) -> bool:
|
||||
return bool(shutil.which('wget'))
|
||||
|
||||
def is_enabled(self) -> bool:
|
||||
return self.enabled
|
||||
|
||||
Reference in New Issue
Block a user