From 5d1c81df79903bdbd5f5acadd009f1a172242873 Mon Sep 17 00:00:00 2001 From: Linux Ninja Date: Sat, 10 Aug 2019 02:19:09 -0400 Subject: [PATCH] fix pacman hook to not delete the /var/cache/pacman/pkg directory - Fixes https://bugs.archlinux.org/task/63311 Signed-off-by: Linux Ninja --- rootfs/usr/share/libalpm/hooks/package-cleanup.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/usr/share/libalpm/hooks/package-cleanup.hook b/rootfs/usr/share/libalpm/hooks/package-cleanup.hook index 448d871..f5ba631 100644 --- a/rootfs/usr/share/libalpm/hooks/package-cleanup.hook +++ b/rootfs/usr/share/libalpm/hooks/package-cleanup.hook @@ -8,4 +8,4 @@ Target = * Description = Cleaning up package cache... Depends = coreutils When = PostTransaction -Exec = /usr/bin/rm -rf /var/cache/pacman/pkg +Exec = /usr/bin/find /var/cache/pacman/pkg/ -type f -delete