Gentoo Archives: gentoo-commits

From: "Marius Mauch (genone)" <genone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r9407 - main/trunk/pym/portage/elog
Date: Sun, 02 Mar 2008 13:44:07
Message-Id: E1JVoU0-00021x-R4@stork.gentoo.org
1 Author: genone
2 Date: 2008-03-02 13:44:03 +0000 (Sun, 02 Mar 2008)
3 New Revision: 9407
4
5 Modified:
6 main/trunk/pym/portage/elog/__init__.py
7 main/trunk/pym/portage/elog/messages.py
8 Log:
9 ensure that global variables are used to prevent confusing issues like bug #212055
10
11 Modified: main/trunk/pym/portage/elog/__init__.py
12 ===================================================================
13 --- main/trunk/pym/portage/elog/__init__.py 2008-03-02 11:40:50 UTC (rev 9406)
14 +++ main/trunk/pym/portage/elog/__init__.py 2008-03-02 13:44:03 UTC (rev 9407)
15 @@ -56,7 +56,7 @@
16 _elog_atexit_handlers = []
17 _preserve_logentries = {}
18 def elog_process(cpv, mysettings, phasefilter=None):
19 -
20 + global _elog_atexit_handlers, _preserve_logentries
21
22 logsystems = mysettings.get("PORTAGE_ELOG_SYSTEM","").split()
23 for s in logsystems:
24
25 Modified: main/trunk/pym/portage/elog/messages.py
26 ===================================================================
27 --- main/trunk/pym/portage/elog/messages.py 2008-03-02 11:40:50 UTC (rev 9406)
28 +++ main/trunk/pym/portage/elog/messages.py 2008-03-02 13:44:03 UTC (rev 9407)
29 @@ -47,6 +47,9 @@
30 """ Backend for the other messaging functions, should not be called
31 directly.
32 """
33 +
34 + global _msgbuffer
35 +
36 if color == None:
37 color = "GOOD"
38 print colorize(color, " * ")+msg
39 @@ -59,6 +62,8 @@
40 #raise NotImplementedError()
41
42 def collect_messages():
43 + global _msgbuffer
44 +
45 rValue = _msgbuffer
46 _reset_buffer()
47 return rValue
48 @@ -67,6 +72,8 @@
49 """ Reset the internal message buffer when it has been processed,
50 should not be called directly.
51 """
52 + global _msgbuffer
53 +
54 _msgbuffer = {}
55
56 # creating and exporting the actual messaging functions
57
58 --
59 gentoo-commits@l.g.o mailing list