Split installation/removal parts in prepost-action scripts.

There are two scripts that can be used now:
	- prepost-inst: for pre/post actions at installation.
	- prepost-rm: for pre/post actions at removal.

--HG--
extra : convert_revision : 5e054758f549f5c81693b825795fbb36e2d5513a
This commit is contained in:
Juan RP
2009-02-03 17:32:51 +01:00
parent 388dd30b45
commit 6c252d43d4
8 changed files with 33 additions and 29 deletions

View File

@@ -9,7 +9,8 @@ with bzip2 and has the following structure:
/var/cache/xbps/metadata/$pkgname
/var/cache/xbps/metadata/$pkgname/flist
/var/cache/xbps/metadata/$pkgname/props.plist
/var/cache/xbps/metadata/$pkgname/postpre-action
/var/cache/xbps/metadata/$pkgname/prepost-inst
/var/cache/xbps/metadata/$pkgname/prepost-rm
Metadata info is stored in the "/var/cache/xbps/metadata/$pkgname"
directory and two files will be always be present: flist and props.plist.
@@ -56,10 +57,8 @@ has the following structure:
...
</dict>
The prepost-action is an executable script/command that allows you to
trigger any action at pre/post installation/removal of the binary
package. If return value is not 0, the package won't be registered into
the database.
The prepost-* executables allows you to trigger any action
at pre/post installation/removal of the binary package.
The package's dictionary will also be written into the repository's package
index file, that describes information about a binary package on it.

View File

@@ -5,7 +5,7 @@ xbps-src:
* More robust and fast dependency checking.
* $version needs to have a dot to be found by xbps.sh.
Some packages do not have a dot on its version, like udev-130.
* Add support to run the prepost-action scripts, so that the same actions are
* Add support to run the prepost-* scripts, so that the same actions are
performed in source/bin packages.
xbps-cmpver: