pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit 12b09fd9a66a8e251127fc3ca56cd09b59ec7814
parent 0a9b252ff29e006693bf1f19fdcb0dca3bd118ec
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Thu, 22 Feb 2024 09:13:23 +0100

Add chdir to Settings

Diffstat:
Muserns_sandbox.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/userns_sandbox.py b/userns_sandbox.py @@ -307,6 +307,7 @@ def parse_mount(s): class Settings: versions: pathlib.PosixPath root: pathlib.PosixPath + chdir: pathlib.PosixPath environment: str vars: dict command: tuple @@ -319,6 +320,9 @@ class Settings: assert isinstance(self.extra_mount, tuple) assert all(isinstance(arg, (MountTMPFS, MountBind)) for arg in self.extra_mount) + assert isinstance(self.chdir, pathlib.PosixPath) + assert self.chdir.is_absolute() + assert isinstance(self.versions, pathlib.PosixPath) assert self.versions.is_absolute() assert self.versions.is_dir()