kiss: Drop special case. Alternatives / Hooks can handle this easily

This commit is contained in:
Dylan Araps 2020-06-11 11:23:29 +03:00
parent 3fdee15f60
commit 177588c713
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 7 deletions

9
kiss
View File

@ -81,7 +81,8 @@ run_hook() {
[ "${KISS_HOOK:-}" ] || {
case $1 in post-build)
rm -rf "$3/usr/share/gettext" "$3/usr/share/polkit-1" \
"$3/usr/share/locale" "$3/usr/share/info"
"$3/usr/share/locale" "$3/usr/share/info" \
"$3/usr/lib/charset.alias"
esac
return 0
@ -630,12 +631,6 @@ pkg_build() {
# database entry.
cp -LRf "$repo_dir" "$pkg_dir/$pkg/$pkg_db/"
# We never ever want this. Let's end the endless conflicts and remove
# it. This will be the only exception for a specific removal of this
# kind. A 'find' is used instead of 'rm' so as to not hardcode the
# location to this file.
find "$pkg_dir/$pkg" -type f -name charset.alias -exec rm -f {} +
log "$pkg" "Successfully built package"
run_hook post-build "$pkg" "$pkg_dir/$pkg"