Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/targets/
Date: Sun, 11 Oct 2015 17:26:44
Message-Id: 1444521276.8fa80abe5e84a125e8cd9e143cf8f92b5c27ac0a.vapier@gentoo
1 commit: 8fa80abe5e84a125e8cd9e143cf8f92b5c27ac0a
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 05:11:49 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 23:54:36 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=8fa80abe
7
8 stage3: convert to log module
9
10 catalyst/targets/stage3.py | 9 +++++----
11 1 file changed, 5 insertions(+), 4 deletions(-)
12
13 diff --git a/catalyst/targets/stage3.py b/catalyst/targets/stage3.py
14 index cc3e520..f083193 100644
15 --- a/catalyst/targets/stage3.py
16 +++ b/catalyst/targets/stage3.py
17 @@ -3,6 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball
18 """
19 # NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
20
21 +from catalyst import log
22 from catalyst.base.stagebase import StageBase
23
24
25 @@ -18,10 +19,10 @@ class stage3(StageBase):
26 def set_portage_overlay(self):
27 StageBase.set_portage_overlay(self)
28 if "portage_overlay" in self.settings:
29 - print "\nWARNING !!!!!"
30 - print "\tUsing an overlay for earlier stages could cause build issues."
31 - print "\tIf you break it, you buy it. Don't complain to us about it."
32 - print "\tDont say we did not warn you\n"
33 + log.warning(
34 + 'Using an overlay for earlier stages could cause build issues.\n'
35 + "If you break it, you buy it. Don't complain to us about it.\n"
36 + "Don't say we did not warn you.")
37
38 def set_cleanables(self):
39 StageBase.set_cleanables(self)