mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 20:46:22 +01:00
Plug-ins: removing an installed plug-in whose module can't be deleted fails
plugin.remove now deletes an installed plug-in's stored module along with
its grant, before its settings and cache are deleted. When the module file
can't be deleted, the command returns "can't delete <file>", the settings
and cache are moved back, the plug-in stays installed, and the grant the
signed grants file held for it is written back, so the stored module
still loads at the next launch. Before, the command returned {removed}
and left the module in the plug-in folder.
This commit is contained in:
1 parent
ee947082ed
commit
232c17b25a
5 files changed
+68
-6
No files matched your search
+3
-1
@@ -13469,7 +13469,9 @@ need a new approval. A refused install keeps the grant. A failed write of the mo
|
||||
grant in the store. A stored module that is disabled, or not read in Safe Mode, keeps the grant for its id. When
|
||||
`plugin.remove` can't remove the grant from the plug-in store, it returns an error and the plug-in stays installed;
|
||||
so does a `plugin.remove` while the system key store can't be reached, also when `grants.json` is missing or doesn't
|
||||
name the plug-in. For an id that isn't installed, `plugin.remove` also deletes the module stored for it that didn't
|
||||
name the plug-in. When `plugin.remove` can't delete an installed plug-in's stored module, it returns an error naming
|
||||
the file, and the plug-in stays installed with its grant kept in the store. For an id that isn't installed,
|
||||
`plugin.remove` also deletes the module stored for it that didn't
|
||||
load and returns `{removed}`. When the plug-in's settings and cache can't be moved back from their `.removed` folder
|
||||
then either, the error names that folder, and the next load, install or `plugin.remove` of the plug-in moves them back. A
|
||||
filter without `doc.write` or `state` that returns output needing them gets an error and the document is unchanged.
|
||||
|
||||
Reference in new issue
Block a user