[flatpak] fix

This commit is contained in:
Vinícius Moreira
2020-01-10 18:43:25 -03:00
parent 9165f40751
commit 80a9d5b347

View File

@@ -203,7 +203,11 @@ def read_updates(version: str, installation: str) -> Dict[str, set]:
def downgrade(app_ref: str, commit: str, installation: str, root_password: str) -> subprocess.Popen:
cmd = [BASE_CMD, 'update', '--no-related', '--commit={}'.format(commit), app_ref, '-y']
return new_root_subprocess(cmd, root_password)
if installation == 'system':
return new_root_subprocess(cmd, root_password)
else:
return new_subprocess(cmd)
def get_app_commits(app_ref: str, origin: str, installation: str) -> List[str]: