Add migration steps

This commit is contained in:
Kivi Kaitaniemi
2025-12-18 06:20:58 +02:00
parent 36053c6d3b
commit 6b67fc0e53
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Decman documentation
This contains the documentation for decman. Each plugin has its own documentation. For a quick overview of decman, see the [README](/README.md).
This contains the documentation for decman. Each plugin has its own documentation. For a quick overview of decman, see the [README](/README.md). For a tutorial, see the [example](/example/README.md).
- [pacman](/docs/pacman.md)
- [systemd](/docs/systemd.md)
+9
View File
@@ -15,6 +15,15 @@ This change is mostly architectural and doesn't change decman's behavior, but th
Since there are changes in the internal logic, it is possible that there are more breaking changes, but I haven't thought about them yet.
## After upgrading decman
After upgrading decman, the store and cache must be deleted. This will cause some `on_enable` -hooks to run again, but the store has had many internal changes, and should be recreated.
```sh
sudo rm /var/lib/decman/store.json
sudo rm -r /var/cache/decman/
```
## Changes
One notable change is replacing lists with sets. Sets make more sense for most things decman manages since duplicates and order are meaningless. With Python you'll want to use `|=` when adding two sets together instead of `+=` which is for lists.