From 0674aa64df1d65d427d653e3ed8b37b211b4d848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 1 Nov 2016 19:44:27 +0100 Subject: [PATCH] app-portage/eix: Own the cache directory --- .../eix/{eix-0.32.1.ebuild => eix-0.32.1-r1.ebuild} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename app-portage/eix/{eix-0.32.1.ebuild => eix-0.32.1-r1.ebuild} (91%) diff --git a/app-portage/eix/eix-0.32.1.ebuild b/app-portage/eix/eix-0.32.1-r1.ebuild similarity index 91% rename from app-portage/eix/eix-0.32.1.ebuild rename to app-portage/eix/eix-0.32.1-r1.ebuild index 57695a9fba1cb..4665d7be27140 100644 --- a/app-portage/eix/eix-0.32.1.ebuild +++ b/app-portage/eix/eix-0.32.1-r1.ebuild @@ -75,15 +75,15 @@ src_install() { default dobashcomp bash/eix systemd_dotmpfilesd tmpfiles.d/eix.conf + + keepdir /var/cache/eix } pkg_postinst() { - local cache=${EROOT%/}/var/cache/${PN} - if [[ ! -d ${cache} ]]; then - mkdir "${cache}" || die - if ! use prefix; then - chown portage:portage "${cache}" || die - fi + if ! use prefix; then + # note: if this is done in src_install(), portage:portage + # ownership may be reset to root + fowners portage:portage "${EROOT%/}"/var/cache/eix fi local obs=${EROOT%/}/var/cache/eix.previous