[flatpak] fix -> installation fails when there are multiple references for a given package

This commit is contained in:
Vinicius Moreira
2020-08-12 10:28:00 -03:00
parent d426397584
commit 12b7acc559
13 changed files with 61 additions and 9 deletions

View File

@@ -355,9 +355,10 @@ def search(version: str, word: str, installation: str, app_id: bool = False) ->
return found
def install(app_id: str, origin: str, installation: str):
return new_subprocess(cmd=['flatpak', 'install', origin, app_id, '-y', '--{}'.format(installation)],
extra_paths={EXPORTS_PATH})
def install(app_id: str, origin: str, installation: str) -> SimpleProcess:
return SimpleProcess(cmd=['flatpak', 'install', origin, app_id, '-y', '--{}'.format(installation)],
extra_paths={EXPORTS_PATH},
wrong_error_phrases={'Warning'})
def set_default_remotes(installation: str, root_password: str = None) -> SimpleProcess: