From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59EB11395E2 for ; Sun, 6 Nov 2016 15:34:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD37AE0A69; Sun, 6 Nov 2016 15:34:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C454DE0A69 for ; Sun, 6 Nov 2016 15:34:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C976B34106E for ; Sun, 6 Nov 2016 15:34:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4296E24B4 for ; Sun, 6 Nov 2016 15:34:51 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1478446475.0674aa64df1d65d427d653e3ed8b37b211b4d848.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/eix/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/eix/eix-0.32.1-r1.ebuild app-portage/eix/eix-0.32.1.ebuild X-VCS-Directories: app-portage/eix/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0674aa64df1d65d427d653e3ed8b37b211b4d848 X-VCS-Branch: master Date: Sun, 6 Nov 2016 15:34:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4e20e80e-5452-4a60-9f68-b91a78ecc6ac X-Archives-Hash: 42d1bd5e0ca57be79cc4b9b20768a232 commit: 0674aa64df1d65d427d653e3ed8b37b211b4d848 Author: Michał Górny gentoo org> AuthorDate: Tue Nov 1 18:44:27 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Nov 6 15:34:35 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0674aa64 app-portage/eix: Own the cache directory app-portage/eix/{eix-0.32.1.ebuild => eix-0.32.1-r1.ebuild} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 57695a9..4665d7b 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