From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Jan 2025 16:07:41 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tTjH3-00GFam-1K for lore@lore.pengutronix.de; Fri, 03 Jan 2025 16:07:41 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tTjH3-0005oa-5U; Fri, 03 Jan 2025 16:07:41 +0100 Received: from mail.cab.de ([46.232.229.101]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTjGq-0005f6-HM for ptxdist@pengutronix.de; Fri, 03 Jan 2025 16:07:28 +0100 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.cab.de 4YPn4J1rKLzMvQtR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cab.de; s=default; t=1735916848; bh=fu4r1AG4dytVYnf2nZyXXFCMcXjo9RLKYM93WjBKy/8=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=tNeYB3+YOHrLrtZk1cf9WlWJH/RI2cCuYDo8ZJ4pOjpHfgSEck9Gnu841+gzQeFke Frba/REhZNh14HHV72Ra7nBgR0BZ1+5LwmvagQ7FS3zc65gfgMnFDf9zsy1pQ/Xbzd NwOm3d3lBTR+3hnyXkiHra/o9DAbhJFG0yiCQ3eE= X-cab-MailScanner-Watermark: 1736521643.24884@7ATxgjxvlJmQYQFPDQMkGg X-cab-MailScanner-From: m.heidelberg@cab.de X-cab-MailScanner: Found to be clean X-cab-MailScanner-ID: 4YPn494V1BzMvQwP X-cab-MailScanner-Information: Please contact it@cab.de for more information Received: from Adranos.cab.de ([10.10.1.54] [10.10.1.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (no client certificate requested) by hephaistos.cab.de (MailScanner Milter) with SMTP id 4YPn494V1BzMvQwP for ; Fri, 3 Jan 2025 16:07:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.cab.de 4YPn494V1BzMvQwP Received: from KAN23-025.cab.de (10.10.3.178) by Adranos.cab.de (10.10.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Fri, 3 Jan 2025 16:07:20 +0100 From: Markus Heidelberg To: Date: Fri, 3 Jan 2025 16:06:47 +0100 Message-ID: <20250103150647.136289-2-m.heidelberg@cab.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250103150647.136289-1-m.heidelberg@cab.de> References: <20250103150647.136289-1-m.heidelberg@cab.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.10.3.178] X-ClientProxiedBy: Adranos.cab.de (10.10.1.54) To Adranos.cab.de (10.10.1.54) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 2/2] ptxdist: remove superfluous deletion of logs in distclean action X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Markus Heidelberg Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false There is always a platform build directory, the logfile is not created in BSP root ($PTXDIST_WORKSPACE/logfile) anymore since commit 83bf2580f8 ("[ptxdist] always use a platform dir", 2010-11-15). Furthermore, $PTX_LOGFILE is already deleted in clean() invoked at the beginning of the "distclean" action, so the whole rm command is unnecessary. Also remove "logfile" from ignore rules, it is only created in the platform build directory of the BSP, not in the PTXdist tree. Signed-off-by: Markus Heidelberg --- .gitignore | 2 -- bin/ptxdist | 3 --- 2 files changed, 5 deletions(-) diff --git a/.gitignore b/.gitignore index 50bfa5185..23623fdb5 100644 --- a/.gitignore +++ b/.gitignore @@ -13,8 +13,6 @@ \#*# .\#* -logfile - /bin/* !/bin/ptxdist !/bin/ptxdist-auto-version diff --git a/bin/ptxdist b/bin/ptxdist index 08d7f03c4..1f561fdf6 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1815,9 +1815,6 @@ EOF fi done - echo "${PTXDIST_LOG_PROMPT}removing logs..." - rm -f -- "${PTX_LOGFILE}" "${PTXDIST_WORKSPACE}/logfile" - echo exit ;; -- 2.43.0