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 BE026158094 for ; Thu, 28 Jul 2022 15:29:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBB89E0B9B; Thu, 28 Jul 2022 15:29:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 A7AA5E0B9B for ; Thu, 28 Jul 2022 15:29:09 +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 ABC4A341187 for ; Thu, 28 Jul 2022 15:29:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED8F5544 for ; Thu, 28 Jul 2022 15:29:06 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1657587503.4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: bin/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: bin/revdep-rebuild.sh X-VCS-Directories: bin/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 X-VCS-Branch: master Date: Thu, 28 Jul 2022 15:29:06 +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: a19879c2-24bd-46d7-bae0-685f0de0e1e0 X-Archives-Hash: 09e5cabcfbe5282797611e4ca878ddd2 commit: 4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 Author: Brian Dolbec gentoo org> AuthorDate: Tue Jul 12 00:58:23 2022 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Tue Jul 12 00:58:23 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4a56a7fe revdep-rebuild.sh: Create its cache dir if it doesn't exist Bug: https://bugs.gentoo.org/382009 Signed-off-by: Brian Dolbec gentoo.org> bin/revdep-rebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/revdep-rebuild.sh b/bin/revdep-rebuild.sh index 5fecf97..7ee3647 100755 --- a/bin/revdep-rebuild.sh +++ b/bin/revdep-rebuild.sh @@ -570,7 +570,8 @@ verify_tmpdir() { elif [[ -d $1 ]]; then cd "$1" else - die 1 "Unable to find a satisfactory location for temporary files ($1)" + mkdir -p "$1" + cd "$1" fi [[ $VERBOSE ]] && einfo "Temporary cache files are located in $PWD" setup_rm