summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-base/xorg-server')
-rw-r--r--x11-base/xorg-server/xorg-server-1.20.3.ebuild2
-rw-r--r--x11-base/xorg-server/xorg-server-9999.ebuild2
2 files changed, 2 insertions, 2 deletions
diff --git a/x11-base/xorg-server/xorg-server-1.20.3.ebuild b/x11-base/xorg-server/xorg-server-1.20.3.ebuild
index b3a10716dcff..0f8072e2a4de 100644
--- a/x11-base/xorg-server/xorg-server-1.20.3.ebuild
+++ b/x11-base/xorg-server/xorg-server-1.20.3.ebuild
@@ -199,7 +199,7 @@ src_install() {
insinto /usr/share/portage/config/sets
newins "${FILESDIR}"/xorg-sets.conf xorg.conf
- [ -d "${ED}"/var/log ] && rmdir "${ED}"/var/log || die
+ find "${ED}"/var -type d -empty -delete || die
}
pkg_postinst() {
diff --git a/x11-base/xorg-server/xorg-server-9999.ebuild b/x11-base/xorg-server/xorg-server-9999.ebuild
index 3c10d062348c..6f158c57aacd 100644
--- a/x11-base/xorg-server/xorg-server-9999.ebuild
+++ b/x11-base/xorg-server/xorg-server-9999.ebuild
@@ -199,7 +199,7 @@ src_install() {
insinto /usr/share/portage/config/sets
newins "${FILESDIR}"/xorg-sets.conf xorg.conf
- [ -d "${ED}"/var/log ] && rmdir "${ED}"/var/log || die
+ find "${ED}"/var -type d -empty -delete || die
}
pkg_postinst() {