xbps-triggers: remove the initramfs for the kernel pkg if removing. Bump to 0.6.

This commit is contained in:
Juan RP 2010-11-04 14:06:49 +01:00
parent 4a841e24ef
commit f22c765450
2 changed files with 5 additions and 4 deletions

View File

@ -37,9 +37,10 @@ run)
# Always use relative paths to create the initramfs! # Always use relative paths to create the initramfs!
initramfs_args="-b ./boot" initramfs_args="-b ./boot"
if [ "$PKGNAME" = "kernel" -o "$PKGNAME" = "kernel-snapshot" ]; then if [ "$PKGNAME" = "kernel" ]; then
if [ "$TARGET" = "post-remove" ]; then if [ "$TARGET" = "post-remove" ]; then
exit 0 # Remove the initramfs if removing.
initramfs_args="$initramfs_args -d -k ${VERSION}"
fi fi
if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then
# Create new initramfs # Create new initramfs

View File

@ -1,8 +1,8 @@
# Template file for 'xbps-triggers' # Template file for 'xbps-triggers'
pkgname=xbps-triggers pkgname=xbps-triggers
version=0.5 version=0.6
build_style=custom-install build_style=custom-install
short_desc="XBPS Package System triggers" short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
long_desc=" long_desc="
This package installs the triggers used by the XBPS binary packages." This package installs the triggers used by the XBPS binary packages."