abuild: remove empty dirs in main package

clean up empty dirs
This commit is contained in:
Natanael Copa 2019-07-17 13:57:17 +00:00
parent ba16a67781
commit b8b8a651fc
1 changed files with 6 additions and 0 deletions

View File

@ -1491,6 +1491,12 @@ create_apks() {
local file= dir= name= ver= apk= datadir= size= local file= dir= name= ver= apk= datadir= size=
local gzip=$(command -v pigz || echo gzip) local gzip=$(command -v pigz || echo gzip)
getpkgver || return 1 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 if ! options_has "!tracedeps"; then
for file in "$pkgbasedir"/.control.*/.PKGINFO; do for file in "$pkgbasedir"/.control.*/.PKGINFO; do
dir="${file%/.PKGINFO}" dir="${file%/.PKGINFO}"