[haiku-commits] Change in ...haiku[master]: package kit: Add pre-uninstall scripts feature.

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 14 Jun 2019 19:58:26 +0000

From Alexander G. M. Smith <agmsmith@xxxxxx>:

Alexander G. M. Smith has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/1504


Change subject: package kit: Add pre-uninstall scripts feature.
......................................................................

package kit: Add pre-uninstall scripts feature.

Just like post-install scripts which run shortly after a package is
installed, pre-uninstall scripts are run just before a package is
removed.  Implements enhancement #13427

* Fix script exit code handling vs script launch errors.
* Bump package and repo file version numbers due to new attribute,
  unfortunately makes new .hpkg files not backwards compatible.
* Add pre-uninstall functionality, mostly cloning the post-install
  except in a few places.
* Discover that _RunQueuedScripts() is never called, a future TODO:?
* Update package documentation for pre-uninstall scripts, and use of
  the boot/post-install directory.
---
M docs/develop/packages/BuildingPackages.rst
M docs/develop/packages/FileFormat.rst
M docs/develop/packages/PackagingPolicy.rst
M headers/os/package/CommitTransactionResult.h
M headers/os/package/PackageInfo.h
M headers/os/package/PackageInfoAttributes.h
M headers/os/package/hpkg/HPKGDefs.h
M headers/os/package/hpkg/PackageAttributes.h
M src/bin/package/PackageInfoPrinter.h
M src/kits/package/CommitTransactionResult.cpp
M src/kits/package/PackageInfo.cpp
M src/kits/package/PackageInfoContentHandler.cpp
M src/kits/package/PackageInfoParser.cpp
M src/kits/package/hpkg/ReaderImplBase.cpp
M src/kits/package/hpkg/WriterImplBase.cpp
M src/servers/package/CommitTransactionHandler.cpp
M src/servers/package/CommitTransactionHandler.h
M src/servers/package/Volume.h
18 files changed, 175 insertions(+), 39 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/04/1504/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1504
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I45596255ce74bc102f6e5b606cbf83e4e4347a17
Gerrit-Change-Number: 1504
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander G. M. Smith <agmsmith@xxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in ...haiku[master]: package kit: Add pre-uninstall scripts feature. - Gerrit