mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[feature] axel support for multithreaded downloads
This commit is contained in:
@@ -517,16 +517,8 @@ class AppImageManager(SoftwareManager):
|
||||
res = run_cmd('which sqlite3')
|
||||
return res and not res.strip().startswith('which ')
|
||||
|
||||
def _is_wget_available(self):
|
||||
res = run_cmd('which wget')
|
||||
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:
|
||||
return self._is_sqlite3_available() and (self._is_wget_available() or self._is_aria2_available())
|
||||
return self._is_sqlite3_available() and self.file_downloader.can_work()
|
||||
|
||||
def requires_root(self, action: str, pkg: AppImage):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user