fix: AUR installation fails when gets warning messages from pacman

This commit is contained in:
Vinicius Moreira
2019-09-20 14:59:21 -03:00
parent 04846928eb
commit b72590287d

View File

@@ -99,7 +99,7 @@ def install_as_process(pkgpath: str, root_password: str, aur: bool, pkgdir: str
else: else:
cmd = ['pacman', '-S', pkgpath, '--noconfirm'] # pkgpath = pkgname cmd = ['pacman', '-S', pkgpath, '--noconfirm'] # pkgpath = pkgname
return SystemProcess(new_root_subprocess(cmd, root_password, cwd=pkgdir), wrong_error_phrase='warning: downgrading package') return SystemProcess(new_root_subprocess(cmd, root_password, cwd=pkgdir), wrong_error_phrase='warning:')
def list_desktop_entries(pkgnames: Set[str]) -> List[str]: def list_desktop_entries(pkgnames: Set[str]) -> List[str]: