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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BE0FF158041 for ; Fri, 5 Apr 2024 16:06:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9B07E29EA; Fri, 5 Apr 2024 16:06:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B28B6E29EA for ; Fri, 5 Apr 2024 16:06:40 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A26713432DE for ; Fri, 5 Apr 2024 16:06:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE4D6167F for ; Fri, 5 Apr 2024 16:06:37 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1712333053.ac957bc00b6bdc98a12d9164609b901ccb04e7b4.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/texlive-common.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: ac957bc00b6bdc98a12d9164609b901ccb04e7b4 X-VCS-Branch: master Date: Fri, 5 Apr 2024 16:06:37 +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: 67f4cd3c-92eb-4b6c-b124-21564fd73087 X-Archives-Hash: f321fa304fdee428681b80c401c748ed commit: ac957bc00b6bdc98a12d9164609b901ccb04e7b4 Author: Florian Schmaus gentoo org> AuthorDate: Fri Apr 5 16:04:13 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Fri Apr 5 16:04:13 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac957bc0 texlive-common_update_tlpdb: only run find if tlpobj dir exists Closes: https://bugs.gentoo.org/928638 Closes: https://bugs.gentoo.org/928639 Closes: https://bugs.gentoo.org/928640 Closes: https://bugs.gentoo.org/928641 Closes: https://bugs.gentoo.org/928642 Closes: https://bugs.gentoo.org/928643 Closes: https://bugs.gentoo.org/928644 Closes: https://bugs.gentoo.org/928645 Signed-off-by: Florian Schmaus gentoo.org> eclass/texlive-common.eclass | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index 66d3999bd103..b32ea2af1121 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -269,10 +269,12 @@ texlive-common_update_tlpdb() { touch "${new_tlpdb}" || die - find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 | - sort -z | - xargs -0 --no-run-if-empty cat >> "${new_tlpdb}" - assert "generating tlpdb failed" + if [[ -d "${tlpobj}" ]]; then + find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 | + sort -z | + xargs -0 --no-run-if-empty cat >> "${new_tlpdb}" + assert "generating tlpdb failed" + fi if [[ -f ${tlpdb} ]]; then cmp -s "${new_tlpdb}" "${tlpdb}"