From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1377473-garchives=archives.gentoo.org@lists.gentoo.org>
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 38BC315808B
	for <garchives@archives.gentoo.org>; Sat, 19 Mar 2022 17:52:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id CB236E098A;
	Sat, 19 Mar 2022 17:52:20 +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 282C9E0986
	for <gentoo-commits@lists.gentoo.org>; Sat, 19 Mar 2022 17:52:20 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(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 F0CA1343247
	for <gentoo-commits@lists.gentoo.org>; Sat, 19 Mar 2022 17:52:18 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 54208320
	for <gentoo-commits@lists.gentoo.org>; Sat, 19 Mar 2022 17:52:17 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1647298297.efc4271cb8c62dd0f20dbfe18dab84646e8c9c4c.sam@gentoo>
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
X-VCS-Repository: proj/qa-scripts
X-VCS-Files: check_eclasses_eapis.sh
X-VCS-Directories: /
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: efc4271cb8c62dd0f20dbfe18dab84646e8c9c4c
X-VCS-Branch: master
Date: Sat, 19 Mar 2022 17:52:17 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 648d6a52-2958-41a7-b592-9faa90b00abb
X-Archives-Hash: ad5e5362e097db0d4ad85d73518a8e68

commit:     efc4271cb8c62dd0f20dbfe18dab84646e8c9c4c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 14 22:44:41 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 22:51:37 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=efc4271c

check_eclasses_eapis.sh: use mktemp

Means we respect TMPDIR.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 check_eclasses_eapis.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh
index 3a0fc07..31a2bbb 100755
--- a/check_eclasses_eapis.sh
+++ b/check_eclasses_eapis.sh
@@ -12,8 +12,8 @@ fi
 #[[ $(type pquery 2> /dev/null) ]] || exit 1
 [[ $(type gawk 2> /dev/null) ]] || exit 1
 
-TMPEAPIS="/tmp/$(basename $0).global.$$.tmp"
-TMPECLASS="/tmp/$(basename $0).eclass.$$.tmp"
+TMPEAPIS="$(mktemp -t $(basename $0).global.tmp.XXXXXX)"
+TMPECLASS="$(mktemp -t $(basename $0).eclass.tmp.XXXXXX)"
 REPO_PATH=$(portageq get_repo_path / gentoo)
 pushd "${REPO_PATH}/eclass" > /dev/null
 ECLASSES=$(echo *.eclass)