From e404a83f9225639636e1f955d0caf7df4df75cfe Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Tue, 11 Jun 2024 17:42:07 +0200
Subject: unschroot: report "Type unshare" for our sessions

Any existing type would be an invalid promise. While sbuild parses the
type, it also currently throws its value away and does not base any
decisions on it. With the new value, it could recognize unschroot and
opt into new features.
---
 examples/unschroot.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'examples')

diff --git a/examples/unschroot.py b/examples/unschroot.py
index 01029f7..88c105f 100755
--- a/examples/unschroot.py
+++ b/examples/unschroot.py
@@ -71,7 +71,13 @@ class Chroot:
         if self.namespace == "Chroot":
             lines.extend(["Type file", f"File {self.path}"])
         if self.namespace == "Session":
-            lines.extend([f"Location {self.path}", "Session Purged true"])
+            lines.extend(
+                [
+                    f"Location {self.path}",
+                    "Session Purged true",
+                    "Type unshare",
+                ]
+            )
         lines.append("Aliases " + " ".join(sorted(self.aliases)))
         return "".join(map("%s\n".__mod__, lines))
 
-- 
cgit v1.2.3