Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH] bin/ebuild: fix --color=n for bug #531690
Date: Sat, 06 Dec 2014 19:25:05
Message-Id: 1417893887-15872-1-git-send-email-zmedico@gentoo.org
1 When the NOCOLOR variable is overridden in portage.settings, it's
2 necessary to call the config.backup_changes method in order for the
3 change to persist through config.reset calls.
4
5 X-Gentoo-Bug: 531690
6 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=531690
7 ---
8 bin/ebuild | 1 +
9 1 file changed, 1 insertion(+)
10
11 diff --git a/bin/ebuild b/bin/ebuild
12 index a62aa20..ad52ed5 100755
13 --- a/bin/ebuild
14 +++ b/bin/ebuild
15 @@ -110,6 +110,7 @@ if not opts.color == 'y' and \
16 portage.output.nocolor()
17 portage.settings.unlock()
18 portage.settings['NOCOLOR'] = 'true'
19 + portage.settings.backup_changes('NOCOLOR')
20 portage.settings.lock()
21
22 ebuild = pargs.pop(0)
23 --
24 2.0.4

Replies