Use auto_resolver rather than apt resolver.
This commit is contained in:
parent
45e0f797e4
commit
c5a278729e
1 changed files with 2 additions and 2 deletions
|
@ -42,6 +42,7 @@ from buildlog_consultant.common import (
|
||||||
|
|
||||||
from . import DetailedFailure, UnidentifiedError
|
from . import DetailedFailure, UnidentifiedError
|
||||||
from .buildsystem import NoBuildToolsFound
|
from .buildsystem import NoBuildToolsFound
|
||||||
|
from .resolver import auto_resolver
|
||||||
from .session import Session
|
from .session import Session
|
||||||
from .session.schroot import SchrootSession
|
from .session.schroot import SchrootSession
|
||||||
|
|
||||||
|
@ -138,7 +139,6 @@ def create_dist(
|
||||||
subdir: Optional[str] = None,
|
subdir: Optional[str] = None,
|
||||||
) -> Optional[str]:
|
) -> Optional[str]:
|
||||||
from .buildsystem import detect_buildsystems
|
from .buildsystem import detect_buildsystems
|
||||||
from .resolver.apt import AptResolver
|
|
||||||
from .buildlog import InstallFixer
|
from .buildlog import InstallFixer
|
||||||
|
|
||||||
if subdir is None:
|
if subdir is None:
|
||||||
|
@ -158,7 +158,7 @@ def create_dist(
|
||||||
raise
|
raise
|
||||||
|
|
||||||
buildsystems = list(detect_buildsystems(export_directory))
|
buildsystems = list(detect_buildsystems(export_directory))
|
||||||
resolver = AptResolver.from_session(session)
|
resolver = auto_resolver(session)
|
||||||
fixers = [InstallFixer(resolver)]
|
fixers = [InstallFixer(resolver)]
|
||||||
|
|
||||||
with DistCatcher(export_directory) as dc:
|
with DistCatcher(export_directory) as dc:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue