summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/unschroot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/unschroot.py b/examples/unschroot.py
index 32a93b5..7da6e9a 100755
--- a/examples/unschroot.py
+++ b/examples/unschroot.py
@@ -270,9 +270,13 @@ def scan_chroots() -> dict[str, ChrootBase]:
chroots.append(path)
for path in chroots:
chroot = cls(path)
- chroot.aliases.update(aliases.get(path.name, set()))
+ chrootaliases = aliases.get(path.name, set())
+ chroot.aliases.update(chrootaliases)
if chroot.name not in chrootmap:
chrootmap[chroot.name] = chroot
+ for alias in chrootaliases:
+ if alias not in chrootmap:
+ chrootmap[alias] = chroot
if CACHE_UNSCHROOT.is_dir():
for path in CACHE_UNSCHROOT.iterdir():