Avoid apt_pkg.

This commit is contained in:
Jelmer Vernooij 2021-02-10 02:39:31 +00:00
parent 7bfa909c00
commit efa2bdb894

View file

@ -19,7 +19,6 @@
from typing import List
import apt_pkg
import os
from buildlog_consultant.apt import (
find_apt_get_failure,
@ -64,6 +63,7 @@ class AptManager(object):
root = getattr(self.session, "location", "/")
status_path = os.path.join(root, "var/lib/dpkg/status")
missing = set(packages)
import apt_pkg
with apt_pkg.TagFile(status_path) as tagf:
while missing:
tagf.step()