From f22c765450deee75e8945bed98cca2e0f5bf5960 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 4 Nov 2010 14:06:49 +0100 Subject: [PATCH] xbps-triggers: remove the initramfs for the kernel pkg if removing. Bump to 0.6. --- srcpkgs/xbps-triggers/files/initramfs-tools | 5 +++-- srcpkgs/xbps-triggers/template | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/initramfs-tools b/srcpkgs/xbps-triggers/files/initramfs-tools index cde30bcdaeb..1891bc2e23a 100755 --- a/srcpkgs/xbps-triggers/files/initramfs-tools +++ b/srcpkgs/xbps-triggers/files/initramfs-tools @@ -37,9 +37,10 @@ run) # Always use relative paths to create the initramfs! initramfs_args="-b ./boot" - if [ "$PKGNAME" = "kernel" -o "$PKGNAME" = "kernel-snapshot" ]; then + if [ "$PKGNAME" = "kernel" ]; then if [ "$TARGET" = "post-remove" ]; then - exit 0 + # Remove the initramfs if removing. + initramfs_args="$initramfs_args -d -k ${VERSION}" fi if [ ! -f var/lib/initramfs-tools/${VERSION} ]; then # Create new initramfs diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 24d7ed69dd3..2ae8542fb7a 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,8 +1,8 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.5 +version=0.6 build_style=custom-install -short_desc="XBPS Package System triggers" +short_desc="XBPS triggers" maintainer="Juan RP " long_desc=" This package installs the triggers used by the XBPS binary packages."