mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[arch] fix: wget as a hard requirement for Arch package management
This commit is contained in:
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## [0.9.22]
|
||||
### Fixes
|
||||
- Arch
|
||||
- **wget** as a hard requirement for Arch package management
|
||||
|
||||
|
||||
## [0.9.21] 2021-11-20
|
||||
### Fixes
|
||||
- General
|
||||
|
||||
@@ -2643,9 +2643,6 @@ class ArchManager(SoftwareManager):
|
||||
|
||||
return res
|
||||
|
||||
def _is_wget_available(self) -> bool:
|
||||
return bool(shutil.which('wget'))
|
||||
|
||||
def is_enabled(self) -> bool:
|
||||
return self.enabled
|
||||
|
||||
@@ -2654,7 +2651,7 @@ class ArchManager(SoftwareManager):
|
||||
|
||||
def can_work(self) -> bool:
|
||||
try:
|
||||
return self.arch_distro and pacman.is_available() and self._is_wget_available()
|
||||
return self.arch_distro and pacman.is_available()
|
||||
except FileNotFoundError:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user