mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-26 00:42:22 +00:00
abuild: remove empty dirs in main package
clean up empty dirs
This commit is contained in:
parent
ba16a67781
commit
b8b8a651fc
@ -1491,6 +1491,12 @@ create_apks() {
|
||||
local file= dir= name= ver= apk= datadir= size=
|
||||
local gzip=$(command -v pigz || echo gzip)
|
||||
getpkgver || return 1
|
||||
rmdir "$pkgdir"/usr/lib \
|
||||
"$pkgdir"/usr/bin \
|
||||
"$pkgdir"/usr/share \
|
||||
"$pkgdir"/usr \
|
||||
"$pkgdir"/etc/
|
||||
2>/dev/null || :
|
||||
if ! options_has "!tracedeps"; then
|
||||
for file in "$pkgbasedir"/.control.*/.PKGINFO; do
|
||||
dir="${file%/.PKGINFO}"
|
||||
|
Loading…
Reference in New Issue
Block a user