From a584d4d11ff557062de9ba0a14246fb859834dc3 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 11 Jun 2024 10:19:35 +0200 Subject: unschroot: tweak --info output * Tag sessions as "Session Purged". This causes sbuild to skip uninstalling build-depends and other cleanup. * Always emit "Aliases" even when empty as we get a warning from sbuild otherwise. --- examples/unschroot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/unschroot.py b/examples/unschroot.py index fe37b9d..01029f7 100755 --- a/examples/unschroot.py +++ b/examples/unschroot.py @@ -71,9 +71,8 @@ class Chroot: if self.namespace == "Chroot": lines.extend(["Type file", f"File {self.path}"]) if self.namespace == "Session": - lines.append(f"Location {self.path}") - if self.aliases: - lines.append("Aliases " + " ".join(sorted(self.aliases))) + lines.extend([f"Location {self.path}", "Session Purged true"]) + lines.append("Aliases " + " ".join(sorted(self.aliases))) return "".join(map("%s\n".__mod__, lines)) @classmethod -- cgit v1.2.3