eXist-db / node-exist

Interact with eXist DB instances via XML-RPC and REST
MIT License
17 stars 6 forks source link

cleanup app.packageCollection after use #241

Closed duncdrum closed 1 year ago

duncdrum commented 2 years ago

db/pkgtmp used for xar installs hangs around after use, which adds another location where outdated xars might unneccesarily accumulate.

since this is a temporary collection, node-exist should clean up after itself, without user intervention

line-o commented 2 years ago

I now recall why I did not cleanup after each installation but opted instead to export the temporary collection. The idea was that on batch installations the creation and removal of the temporary collection would only have to be done once. That would leave it to the script using this feature of node-exist can decide when and if to remove the XAR package. Maybe it is useful to keep a XAR that failed to install inside the database for further inspection.

line-o commented 1 year ago

I believe this should be done by packages using this library not the library itself.