Enter context for PlainSession.

This commit is contained in:
Jelmer Vernooij 2021-03-17 15:06:15 +00:00
parent 997a643b01
commit ccc7b934a2

View file

@ -721,10 +721,11 @@ def main(argv=None):
tree = WorkingTree.open(".")
if args.schroot:
session = SchrootSession(args.schroot)
es.enter_context(session)
else:
session = PlainSession()
es.enter_context(session)
apt = AptManager(session)
try: