WEFT_OS/infra
Marco Allegretti 1928ffb661
fix(pack): never delete a data directory that was not moved
weft-pack uninstall moved earlier app data only when the package
manifest could be read and declared an app-data capability, and only
when the store path was spelled exactly as the user store; otherwise it
removed the package directory with the data in it. A directory left
holding only data by an earlier weft-appd, which has no manifest, was
deleted that way.

A data directory is now never removed with a package. In the user
store, recognised by its real location rather than its spelling, it is
moved when the package declares app data or its manifest cannot be
read; in every other case uninstall stops and changes nothing. Tests
cover a directory holding only data, a store reached through '..', a
symbolically linked home, an app without the capability and another
store.

weft-appd reports both locations when a move fails with an I/O error and
creates the data directory with mode 0700 instead of tightening it
afterwards.
2026-10-09 09:01:28 +00:00
..
nixos build: select compiling Servo and Stylo fork revisions 2026-10-09 00:13:08 +00:00
scripts feat(compositor): add weft-compositor crate 2026-03-10 20:56:35 +01:00
shell fix(appd): move only real app data and never replace a directory 2026-10-09 08:52:09 +00:00
systemd fix(pack): never delete a data directory that was not moved 2026-10-09 09:01:28 +00:00
vm build(nix): add servo-shell/app-shell packages, real git hashes, fix VM configuration 2026-03-12 21:07:39 +01:00