[view] fix: displaying initial warnings related to supported technologies even when they are not enabled or have the required dependencies

This commit is contained in:
Vinicius Moreira
2021-11-09 12:47:13 -03:00
parent d68bf1e53d
commit 0a9133068e
7 changed files with 22 additions and 33 deletions

View File

@@ -2733,20 +2733,9 @@ class ArchManager(SoftwareManager):
return [PackageUpdate(p.name, p.latest_version, aur_type if p.repository == 'aur' else repo_type, p.name) for p in installed if p.update and not p.is_update_ignored()]
def list_warnings(self, internet_available: bool) -> List[str]:
warnings = []
if self.arch_distro:
if not pacman.is_available():
warnings.append(self.i18n['arch.warning.disabled'].format(bold('pacman')))
if not self._is_wget_available():
warnings.append(self.i18n['arch.warning.disabled'].format(bold('wget')))
if not git.is_installed():
warnings.append(self.i18n['arch.warning.git'].format(bold('git')))
return warnings
def list_warnings(self, internet_available: bool) -> Optional[List[str]]:
if not git.is_installed():
return [self.i18n['arch.warning.git'].format(bold('git'))]
def list_suggestions(self, limit: int, filter_installed: bool) -> List[PackageSuggestion]:
self.logger.info("Downloading suggestions file {}".format(SUGGESTIONS_FILE))