Support for running apt as root.

This commit is contained in:
Jelmer Vernooij 2021-03-02 17:55:44 +00:00
parent 9c74e770a6
commit 0b9077f964
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
5 changed files with 17 additions and 2 deletions

View file

@ -103,6 +103,9 @@ class AptManager(object):
def satisfy(self, deps: List[str]) -> None:
run_apt(self.session, ["satisfy"] + deps)
def satisfy_command(self, deps: List[str]) -> str:
return ["apt", "satisfy"] + deps
class ContentsFileNotFound(Exception):
"""The contents file was not found."""