Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 03/10] stage3: convert to log module
Date: Sun, 11 Oct 2015 06:29:28
Message-Id: 1444544952-32408-3-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 01/10] stage1: convert to log module by Mike Frysinger
1 ---
2 catalyst/targets/stage3.py | 9 +++++----
3 1 file changed, 5 insertions(+), 4 deletions(-)
4
5 diff --git a/catalyst/targets/stage3.py b/catalyst/targets/stage3.py
6 index cc3e520..f083193 100644
7 --- a/catalyst/targets/stage3.py
8 +++ b/catalyst/targets/stage3.py
9 @@ -3,6 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
10 """
11 # NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
12
13 +from catalyst import log
14 from catalyst.base.stagebase import StageBase
15
16
17 @@ -18,10 +19,10 @@ class stage3(StageBase):
18 def set_portage_overlay(self):
19 StageBase.set_portage_overlay(self)
20 if "portage_overlay" in self.settings:
21 - print "\nWARNING !!!!!"
22 - print "\tUsing an overlay for earlier stages could cause build issues."
23 - print "\tIf you break it, you buy it. Don't complain to us about it."
24 - print "\tDont say we did not warn you\n"
25 + log.warning(
26 + 'Using an overlay for earlier stages could cause build issues.\n'
27 + "If you break it, you buy it. Don't complain to us about it.\n"
28 + "Don't say we did not warn you.")
29
30 def set_cleanables(self):
31 StageBase.set_cleanables(self)
32 --
33 2.5.2