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 2B4E713835A for ; Sat, 16 May 2020 06:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D62A0E09A5; Sat, 16 May 2020 06:43:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 BA9C9E09A5 for ; Sat, 16 May 2020 06:43:39 +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 8390C34F106 for ; Sat, 16 May 2020 06:43:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A506F250 for ; Sat, 16 May 2020 06:43:34 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1589513996.4d2ed2e6ea5bf5e2d79a7a9e9726748752986a35.mattst88@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/targetbase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 4d2ed2e6ea5bf5e2d79a7a9e9726748752986a35 X-VCS-Branch: master Date: Sat, 16 May 2020 06:43:34 +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: 86f7da06-9928-45a4-be4e-783fb01503c5 X-Archives-Hash: 5c3b8a39e27abb71865936fad89e1860 commit: 4d2ed2e6ea5bf5e2d79a7a9e9726748752986a35 Author: Matt Turner gentoo org> AuthorDate: Fri May 15 01:22:28 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Fri May 15 03:39:56 2020 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=4d2ed2e6 catalyst: Make parent directories of snapshots/ Otherwise, if /var/tmp/catalyst does not exist when the snapshot target is executed it will fail to make the snapshots/ directory. Signed-off-by: Matt Turner gentoo.org> catalyst/base/targetbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/base/targetbase.py b/catalyst/base/targetbase.py index 5bcea920..3e338bee 100644 --- a/catalyst/base/targetbase.py +++ b/catalyst/base/targetbase.py @@ -24,7 +24,7 @@ class TargetBase(ABC): def set_snapshot(self, treeish=None): # Make snapshots directory snapshot_dir = Path(self.settings['storedir'], 'snapshots') - snapshot_dir.mkdir(mode=0o755, exist_ok=True) + snapshot_dir.mkdir(mode=0o755, parents=True, exist_ok=True) repo_name = self.settings['repo_name'] if treeish is None: