summaryrefslogtreecommitdiff
path: root/examples/unschroot.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/unschroot.py')
-rwxr-xr-xexamples/unschroot.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/unschroot.py b/examples/unschroot.py
index 58e14b7..32a93b5 100755
--- a/examples/unschroot.py
+++ b/examples/unschroot.py
@@ -231,6 +231,9 @@ class DirectorySessionChroot(SessionChroot):
data = super().infodata()
data["Type"] = "directory"
data["Directory"] = str(self.source.path)
+ # It's a gross lie, but sbuild does not work without. It has to
+ # actually exist and should not occur inside build logs.
+ data["Location"] = str(self.source.path)
return data
def mount(self) -> pathlib.Path:
@@ -308,7 +311,7 @@ def do_info(args: argparse.Namespace) -> None:
def do_begin_session(args: argparse.Namespace) -> None:
"""Begin a session; returns the session ID"""
chrootmap = scan_chroots()
- source = chrootmap[args.chroot]
+ source = chrootmap[args.chroot.removeprefix("chroot:")]
assert isinstance(source, SourceChroot)
session = source.newsession()
print(session.name)