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 1FBF91396D0 for ; Tue, 3 Oct 2017 19:09:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 809FEE0C03; Tue, 3 Oct 2017 19:09:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 62C39E0C03 for ; Tue, 3 Oct 2017 19:09: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-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 649B53418C3 for ; Tue, 3 Oct 2017 19:09:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 282B6909B for ; Tue, 3 Oct 2017 19:09: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: <1507057766.0e75df216fd02d70c32ce8cac8b52690f879566f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sandbox/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/sandbox/sandbox-2.12.ebuild X-VCS-Directories: sys-apps/sandbox/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0e75df216fd02d70c32ce8cac8b52690f879566f X-VCS-Branch: master Date: Tue, 3 Oct 2017 19:09: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: 4b2b95b0-3850-4eb2-8717-1ef4fa1346e5 X-Archives-Hash: d05175a0755d8872de2fe0c8a84ea79f commit: 0e75df216fd02d70c32ce8cac8b52690f879566f Author: Michał Górny gentoo org> AuthorDate: Tue Oct 3 18:26:47 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Oct 3 19:09:26 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e75df21 sys-apps/sandbox: Fix REPLACING_VERSIONS use Closes: https://bugs.gentoo.org/589518 sys-apps/sandbox/sandbox-2.12.ebuild | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/sys-apps/sandbox/sandbox-2.12.ebuild b/sys-apps/sandbox/sandbox-2.12.ebuild index 77ad8b92e12..6bea9b71911 100644 --- a/sys-apps/sandbox/sandbox-2.12.ebuild +++ b/sys-apps/sandbox/sandbox-2.12.ebuild @@ -54,17 +54,23 @@ pkg_preinst() { chown root:portage "${ED}"/var/log/sandbox chmod 0770 "${ED}"/var/log/sandbox - if [[ ${REPLACING_VERSIONS} == 1.* ]] ; then - local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*') - if [[ -n ${old} ]] ; then - elog "Removing old sandbox libraries for you:" - find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete + local v + for v in ${REPLACING_VERSIONS}; do + if [[ ${v} == 1.* ]] ; then + local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*') + if [[ -n ${old} ]] ; then + elog "Removing old sandbox libraries for you:" + find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete + fi fi - fi + done } pkg_postinst() { - if [[ ${REPLACING_VERSIONS} == 1.* ]] ; then - chmod 0755 "${EROOT}"/etc/sandbox.d #265376 - fi + local v + for v in ${REPLACING_VERSIONS}; do + if [[ ${v} == 1.* ]] ; then + chmod 0755 "${EROOT}"/etc/sandbox.d #265376 + fi + done }