diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-02-25 23:12:57 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-02-25 23:15:12 +0000 |
commit | 81e24164a9d217085c804aed62fe87d1d40c6e5d (patch) | |
tree | 1a8385f36a59dd359610f32bf7b4e6ff5e65959a /main/abuild | |
parent | 308a9de1b72f5edb46ad1c7810d9417f87c26add (diff) | |
download | aports-81e24164a9d217085c804aed62fe87d1d40c6e5d.tar.bz2 aports-81e24164a9d217085c804aed62fe87d1d40c6e5d.tar.xz |
main/abuild: allow forcing of colored output
Diffstat (limited to 'main/abuild')
-rw-r--r-- | main/abuild/0001-Allow-forcing-of-colored-output.patch | 29 | ||||
-rw-r--r-- | main/abuild/APKBUILD | 6 |
2 files changed, 33 insertions, 2 deletions
diff --git a/main/abuild/0001-Allow-forcing-of-colored-output.patch b/main/abuild/0001-Allow-forcing-of-colored-output.patch new file mode 100644 index 0000000000..0606dcff85 --- /dev/null +++ b/main/abuild/0001-Allow-forcing-of-colored-output.patch @@ -0,0 +1,29 @@ +From 0a79fc62c9d0aa30eb42ff4251701eee2368309d Mon Sep 17 00:00:00 2001 +From: Carlo Landmeter <clandmeter@alpinelinux.org> +Date: Mon, 25 Feb 2019 23:02:09 +0000 +Subject: [PATCH] Allow forcing of colored output + +In some cases (ie drone ci) there is no tty available but its still +possible to display colors in the webui. +--- + functions.sh.in | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/functions.sh.in b/functions.sh.in +index 4f2c023..ea21f25 100644 +--- a/functions.sh.in ++++ b/functions.sh.in +@@ -243,7 +243,9 @@ enable_colors() { + BLUE="\033[1;34m" + } + +-if [ -n "$USE_COLORS" ] && [ -t 1 ]; then ++if [ "$USE_COLORS" = force ]; then ++ enable_colors ++elif [ -n "$USE_COLORS" ] && [ -t 1 ]; then + enable_colors + else + disable_colors +-- +2.21.0 + diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD index b50e6a9df6..b7adce8cf7 100644 --- a/main/abuild/APKBUILD +++ b/main/abuild/APKBUILD @@ -2,7 +2,7 @@ pkgname=abuild pkgver=3.3.0 _ver=${pkgver%_git*} -pkgrel=1 +pkgrel=2 pkgdesc="Script to build Alpine Packages" url="https://git.alpinelinux.org/cgit/abuild/" arch="all" @@ -22,6 +22,7 @@ options="suid !check" pkggroups="abuild" source="https://dev.alpinelinux.org/archive/abuild/abuild-$_ver.tar.xz 0001-abuild-add-support-for-pkg-config-prefix-pcprefix.patch + 0001-Allow-forcing-of-colored-output.patch " builddir="$srcdir/$pkgname-$_ver" @@ -70,4 +71,5 @@ _rootbld() { } sha512sums="c109a63107a0816117d781c1d3e664dd8d36648b0dc46a9e61d720c9813d50134cd8db4b282a8d27e546b5bd544296088c6d1b6996b230304d5db009f4ba4d52 abuild-3.3.0.tar.xz -fc33c946b969b6f862c85582f7ec63cea2fa47d1d13dd10374c7376f297926bea2e0864509235b1c7118d6dc759ca5cfc6487612877f97568f9294e6c67fb86c 0001-abuild-add-support-for-pkg-config-prefix-pcprefix.patch" +fc33c946b969b6f862c85582f7ec63cea2fa47d1d13dd10374c7376f297926bea2e0864509235b1c7118d6dc759ca5cfc6487612877f97568f9294e6c67fb86c 0001-abuild-add-support-for-pkg-config-prefix-pcprefix.patch +0a64bec454b076f2db1667f9812ee454d1c2d94ef0171d5bc2f3e324557bdc50dadca28710a3b76d557c585ec0f2d5f3e0b96f0320d99505542ca5ad6b004a72 0001-Allow-forcing-of-colored-output.patch" |