commit: 8fa80abe5e84a125e8cd9e143cf8f92b5c27ac0a Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Sat Oct 10 05:11:49 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Sat Oct 10 23:54:36 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=8fa80abe
stage3: convert to log module catalyst/targets/stage3.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/catalyst/targets/stage3.py b/catalyst/targets/stage3.py index cc3e520..f083193 100644 --- a/catalyst/targets/stage3.py +++ b/catalyst/targets/stage3.py @@ -3,6 +3,7 @@ stage3 target, builds upon previous stage2/stage3 tarball """ # NOTE: That^^ docstring has influence catalyst-spec(5) man page generation. +from catalyst import log from catalyst.base.stagebase import StageBase @@ -18,10 +19,10 @@ class stage3(StageBase): def set_portage_overlay(self): StageBase.set_portage_overlay(self) if "portage_overlay" in self.settings: - print "\nWARNING !!!!!" - print "\tUsing an overlay for earlier stages could cause build issues." - print "\tIf you break it, you buy it. Don't complain to us about it." - print "\tDont say we did not warn you\n" + log.warning( + 'Using an overlay for earlier stages could cause build issues.\n' + "If you break it, you buy it. Don't complain to us about it.\n" + "Don't say we did not warn you.") def set_cleanables(self): StageBase.set_cleanables(self)