mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[appimage] improved the way sqlite3 and wget are checked
This commit is contained in:
@@ -29,7 +29,8 @@ This project has an official Twitter account ( **@bauh4linux** ) so people can s
|
|||||||
- **flatpak**: to be able to handle Flatpak applications
|
- **flatpak**: to be able to handle Flatpak applications
|
||||||
- **snapd**: to be able to handle Snap applications
|
- **snapd**: to be able to handle Snap applications
|
||||||
- **pacman**: to be able to handle AUR packages
|
- **pacman**: to be able to handle AUR packages
|
||||||
- **wget**: to be able to handle AUR packages
|
- **wget**: to be able to handle AppImage and AUR packages
|
||||||
|
- **sqlite3**: to be able to handle AppImage applications
|
||||||
- **git**: to be able to downgrade AUR packages
|
- **git**: to be able to downgrade AUR packages
|
||||||
- **aria2**: faster AppImage and AUR source files downloading ( reduces packages installation time. More information below. )
|
- **aria2**: faster AppImage and AUR source files downloading ( reduces packages installation time. More information below. )
|
||||||
- **libappindicator3**: for the **tray mode** in GTK3 desktop environments
|
- **libappindicator3**: for the **tray mode** in GTK3 desktop environments
|
||||||
|
|||||||
@@ -340,18 +340,12 @@ class AppImageManager(SoftwareManager):
|
|||||||
self.enabled = enabled
|
self.enabled = enabled
|
||||||
|
|
||||||
def _is_sqlite3_available(self):
|
def _is_sqlite3_available(self):
|
||||||
try:
|
res = run_cmd('which sqlite3')
|
||||||
new_subprocess(['sqlite3', '--version'])
|
return res and not res.strip().startswith('which ')
|
||||||
return True
|
|
||||||
except FileNotFoundError:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _is_wget_available(self):
|
def _is_wget_available(self):
|
||||||
try:
|
res = run_cmd('which wget')
|
||||||
new_subprocess(['wget', '--version'])
|
return res and not res.strip().startswith('which ')
|
||||||
return True
|
|
||||||
except FileNotFoundError:
|
|
||||||
return False
|
|
||||||
|
|
||||||
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user