[arch] fix: wget as a hard requirement for Arch package management

This commit is contained in:
Vinicius Moreira
2021-11-22 13:30:37 -03:00
parent db4d6db37b
commit 1e11f80bed
2 changed files with 7 additions and 4 deletions

View File

@@ -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/). 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 ## [0.9.21] 2021-11-20
### Fixes ### Fixes
- General - General

View File

@@ -2643,9 +2643,6 @@ class ArchManager(SoftwareManager):
return res return res
def _is_wget_available(self) -> bool:
return bool(shutil.which('wget'))
def is_enabled(self) -> bool: def is_enabled(self) -> bool:
return self.enabled return self.enabled
@@ -2654,7 +2651,7 @@ class ArchManager(SoftwareManager):
def can_work(self) -> bool: def can_work(self) -> bool:
try: try:
return self.arch_distro and pacman.is_available() and self._is_wget_available() return self.arch_distro and pacman.is_available()
except FileNotFoundError: except FileNotFoundError:
return False return False