aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2023-12-05 07:31:25 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2023-12-05 07:31:25 +0100
commit8f46aa2037828eb4d0347f66d4f8b5d163d3e05f (patch)
tree7f094790e9f7a23e8e32ed7b66d0c1ebc0dbc63f
parentde8cad0435f680a3c80e282d322d70b96343a891 (diff)
main/kmod: clean up empty dir from trigger
-rw-r--r--main/kmod/APKBUILD2
-rw-r--r--main/kmod/kmod.trigger1
2 files changed, 2 insertions, 1 deletions
diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD
index d274aac19c2..e077f6a90f9 100644
--- a/main/kmod/APKBUILD
+++ b/main/kmod/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kmod
pkgver=31
-pkgrel=1
+pkgrel=2
pkgdesc="Linux kernel module management utilities"
url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
arch="all"
diff --git a/main/kmod/kmod.trigger b/main/kmod/kmod.trigger
index d22e6f9ee35..4516d8a0708 100644
--- a/main/kmod/kmod.trigger
+++ b/main/kmod/kmod.trigger
@@ -15,6 +15,7 @@ for i in "$@"; do
"$i"/modules.dep.bin \
"$i"/modules.softdep \
"$i"/modules.symbols.bin
+ rmdir "$i" 2>/dev/null || :
fi
done