mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 21:14:15 +02:00
[appimage] checking if aria2 is installed in 'can_work'
This commit is contained in:
@@ -361,8 +361,12 @@ class AppImageManager(SoftwareManager):
|
|||||||
res = run_cmd('which wget')
|
res = run_cmd('which wget')
|
||||||
return res and not res.strip().startswith('which ')
|
return res and not res.strip().startswith('which ')
|
||||||
|
|
||||||
|
def _is_aria2_available(self):
|
||||||
|
res = run_cmd('which aria2c')
|
||||||
|
return res and not res.strip().startswith('which ')
|
||||||
|
|
||||||
def can_work(self) -> bool:
|
def can_work(self) -> bool:
|
||||||
return self._is_sqlite3_available() and self._is_wget_available()
|
return self._is_sqlite3_available() and (self._is_wget_available() or self._is_aria2_available())
|
||||||
|
|
||||||
def requires_root(self, action: str, pkg: AppImage):
|
def requires_root(self, action: str, pkg: AppImage):
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user