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 2E3021382C5 for ; Sat, 16 May 2020 06:43:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCD8BE096F; Sat, 16 May 2020 06:43:38 +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 A2ED6E096F for ; Sat, 16 May 2020 06:43:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 EF68234F0FE for ; Sat, 16 May 2020 06:43:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7FE4624C 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.202556d8a04852f2fa1c39eaca11da3c1421fbfe.mattst88@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/stagebase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 202556d8a04852f2fa1c39eaca11da3c1421fbfe 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: 66311518-4769-40c7-b95e-c60872e30f30 X-Archives-Hash: 0ce1ff3371159f02073c9fc67d9f210c commit: 202556d8a04852f2fa1c39eaca11da3c1421fbfe Author: Matt Turner gentoo org> AuthorDate: Thu May 14 03:27:47 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=202556d8 catalyst: Drop unnecessary clear_path() open(..., 'w') truncates the file. Signed-off-by: Matt Turner gentoo.org> catalyst/base/stagebase.py | 1 - 1 file changed, 1 deletion(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 964a5129..68945da8 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -974,7 +974,6 @@ class StageBase(TargetBase, ClearBase, GenBase): # Modify and write out make.conf (for the chroot) makepath = normpath(self.settings["chroot_path"] + self.settings["make_conf"]) - clear_path(makepath) with open(makepath, "w") as myf: log.notice("Writing the stage make.conf to: %s" % makepath) myf.write("# These settings were set by the catalyst build script "