xbps-base-files: an improvement to previous commit.

Also update the initramfs of all kernels while removing a
package != kernel. Bump to 0.24.

--HG--
extra : convert_revision : 13bbba2d34c4ae6a0e678df6e1a1cc79fa7185a6
This commit is contained in:
Juan RP 2009-10-03 08:58:00 +02:00
parent 49430c3e66
commit 6dab476f7b
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-base-files' # Template file for 'xbps-base-files'
pkgname=xbps-base-files pkgname=xbps-base-files
version=0.23 version=0.24
build_style=custom-install build_style=custom-install
short_desc="xbps base system files" short_desc="xbps base system files"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"

View file

@ -5,7 +5,7 @@
# installed kernel otherwise. # installed kernel otherwise.
# #
# Arguments: $1 = action [run/targets] # Arguments: $1 = action [run/targets]
# $2 = target [post-install] # $2 = target [post-install/post-remove]
# $3 = pkgname # $3 = pkgname
# $4 = version # $4 = version
# #
@ -18,15 +18,17 @@ update_initramfs=usr/sbin/update-initramfs
case "$ACTION" in case "$ACTION" in
targets) targets)
echo "post-install" echo "post-install post-remove"
;; ;;
run) run)
[ ! -x ${update_initramfs} ] && exit 0 [ ! -x ${update_initramfs} ] && exit 0
[ "$TARGET" != "post-install" ] && exit 1
initramfs_args="update-initramfs" initramfs_args="update-initramfs"
if [ "$PKGNAME" = "kernel" ]; then if [ "$PKGNAME" = "kernel" ]; then
if [ "$TARGET" = "post-remove" ]; then
exit 0
fi
if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then
# Create new initramfs # Create new initramfs
initramfs_args="-c -k ${VERSION}" initramfs_args="-c -k ${VERSION}"