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 BBA0A158064 for ; Thu, 2 May 2024 16:52:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B053DE2A28; Thu, 2 May 2024 16:52:35 +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 9171DE2A26 for ; Thu, 2 May 2024 16:52:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 831F8343004 for ; Thu, 2 May 2024 16:52:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B9F8619D0 for ; Thu, 2 May 2024 16:52:32 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1714666695.455a245dd327a8f18f77986662214206aa50d490.ulm@gentoo> Subject: [gentoo-commits] proj/emacs-tools:emacs-updater commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog emacs-updater X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 455a245dd327a8f18f77986662214206aa50d490 X-VCS-Branch: emacs-updater Date: Thu, 2 May 2024 16:52:32 +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: 43cfa4fc-af6c-433b-86a2-91726ee78f80 X-Archives-Hash: b83449469f8459a8ca5503b4428dec0b commit: 455a245dd327a8f18f77986662214206aa50d490 Author: Ulrich Müller gentoo org> AuthorDate: Thu May 2 16:18:15 2024 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu May 2 16:18:15 2024 +0000 URL: https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=455a245d Respect NO_COLOR * emacs-updater (COLOUR): Respect the NO_COLOR environment variable. Signed-off-by: Ulrich Müller gentoo.org> ChangeLog | 5 +++++ emacs-updater | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2dc5440..6323e0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-05-02 Ulrich Müller + + * emacs-updater (COLOUR): Respect the NO_COLOR environment + variable. + 2024-05-01 Arsen Arsenović * emacs-updater (pm_portage): Pass --usepkg=n to Portage. diff --git a/emacs-updater b/emacs-updater index c1ac43e..34fd89b 100755 --- a/emacs-updater +++ b/emacs-updater @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2007-2023 Gentoo Authors +# Copyright 2007-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 or later # Authors: @@ -20,12 +20,14 @@ PM_EXTRAOPTS=( ) # Other default variable settings BATCH= -COLOUR= EXACT= MAJOR= ORPHANS= PRETEND= +# Check for NO_COLOR environment variable: https://no-color.org/ +COLOUR=${NO_COLOR:+no} + usage() { sed -e 's/^X//' <<-EOF Usage: ${0##*/} [OPTION]...