Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] xbps-src: set NOCOLOR early
Date: Wed, 19 Jun 2019 18:12:21 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12554@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

There is a new pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages NOCOLOR
https://github.com/void-linux/void-packages/pull/12554

xbps-src: set NOCOLOR early
None

A patch file from https://github.com/void-linux/void-packages/pull/12554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-NOCOLOR-12554.patch --]
[-- Type: application/text/x-diff, Size: 1028 bytes --]

From 2acafff721b748e79f688d2b936fab9825ef3ab2 Mon Sep 17 00:00:00 2001
From: John <johnz@posteo.net>
Date: Wed, 19 Jun 2019 18:10:44 +0200
Subject: [PATCH] xbps-src: set NOCOLOR early

---
 xbps-src | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/xbps-src b/xbps-src
index e32b6ff6215..00daec93ce9 100755
--- a/xbps-src
+++ b/xbps-src
@@ -434,6 +434,13 @@ shift $(($OPTIND - 1))
 
 [ $# -eq 0 ] && usage && exit 1
 
+# Check if stdout is a tty; if false disable colors.
+test -t 1 || export NOCOLORS=1
+# http://no-color.org
+if [ -n "${NO_COLOR+x}" ]; then
+    export NOCOLORS=1
+fi
+
 umask 022
 
 #
@@ -573,13 +580,6 @@ if [ -n "$2" ]; then
     XBPS_TARGET_PKG="${2##*/}"
 fi
 
-# Check if stdout is a tty; if false disable colors.
-test -t 1 || export NOCOLORS=1
-# http://no-color.org
-if [ -n "${NO_COLOR+x}" ]; then
-    export NOCOLORS=1
-fi
-
 chroot_check() {
     if [ -f $XBPS_MASTERDIR/.xbps_chroot_init -o "$XBPS_CHROOT_CMD" = "ethereal" ]; then
         export CHROOT_READY=1

             reply	other threads:[~2019-06-19 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-19 16:12 voidlinux-github [this message]
2019-06-19 16:26 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12554@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).