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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D7BC01581FB for ; Tue, 27 Aug 2024 13:15:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CF51E29AF; Tue, 27 Aug 2024 13:15:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D21C1E29AF for ; Tue, 27 Aug 2024 13:15:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF5C9342F93 for ; Tue, 27 Aug 2024 13:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4AE561F08 for ; Tue, 27 Aug 2024 13:15:09 +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: <1724764502.dcf7bfe158f0f9225f5f047910456032e768132a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pipx/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pipx/pipx-1.7.1.ebuild X-VCS-Directories: dev-python/pipx/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: dcf7bfe158f0f9225f5f047910456032e768132a X-VCS-Branch: master Date: Tue, 27 Aug 2024 13:15:09 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7e7170a4-42fe-4129-bcf5-fde6118ec0b0 X-Archives-Hash: 8af5feec84eed1c39b1fe2e6028bb50b commit: dcf7bfe158f0f9225f5f047910456032e768132a Author: Michał Górny gentoo org> AuthorDate: Tue Aug 27 13:15:02 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Aug 27 13:15:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf7bfe1 dev-python/pipx: Fix missing condition around test code Closes: https://bugs.gentoo.org/938556 Signed-off-by: Michał Górny gentoo.org> dev-python/pipx/pipx-1.7.1.ebuild | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/dev-python/pipx/pipx-1.7.1.ebuild b/dev-python/pipx/pipx-1.7.1.ebuild index a1eb2f8338c6..d2da505c182f 100644 --- a/dev-python/pipx/pipx-1.7.1.ebuild +++ b/dev-python/pipx/pipx-1.7.1.ebuild @@ -76,15 +76,17 @@ src_prepare() { } python_configure() { - local v=$( - "${EPYTHON}" - <<-EOF - import sys - print(".".join(str(x) for x in sys.version_info[:2])) - EOF - ) - if [[ ! -e .pipx_tests/package_cache/${v} ]]; then - ln -s "${WORKDIR}/${TEST_SHIM}" \ - ".pipx_tests/package_cache/${v}" || die + if use test; then + local v=$( + "${EPYTHON}" - <<-EOF + import sys + print(".".join(str(x) for x in sys.version_info[:2])) + EOF + ) + if [[ ! -e .pipx_tests/package_cache/${v} ]]; then + ln -s "${WORKDIR}/${TEST_SHIM}" \ + ".pipx_tests/package_cache/${v}" || die + fi fi }