1 |
--- |
2 |
catalyst/targets/embedded.py | 7 +++---- |
3 |
catalyst/targets/grp.py | 8 ++++---- |
4 |
2 files changed, 7 insertions(+), 8 deletions(-) |
5 |
|
6 |
diff --git a/catalyst/targets/embedded.py b/catalyst/targets/embedded.py |
7 |
index 6044e17..e441757 100644 |
8 |
--- a/catalyst/targets/embedded.py |
9 |
+++ b/catalyst/targets/embedded.py |
10 |
@@ -10,9 +10,8 @@ ROOT=/tmp/submerge emerge --something foo bar . |
11 |
""" |
12 |
# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation. |
13 |
|
14 |
- |
15 |
+from catalyst import log |
16 |
from catalyst.support import normpath |
17 |
- |
18 |
from catalyst.base.stagebase import StageBase |
19 |
|
20 |
class embedded(StageBase): |
21 |
@@ -39,8 +38,8 @@ class embedded(StageBase): |
22 |
|
23 |
def set_stage_path(self): |
24 |
self.settings["stage_path"]=normpath(self.settings["chroot_path"]+"/tmp/mergeroot") |
25 |
- print "embedded stage path is "+self.settings["stage_path"] |
26 |
+ log.info('embedded stage path is %s', self.settings['stage_path']) |
27 |
|
28 |
def set_root_path(self): |
29 |
self.settings["root_path"]=normpath("/tmp/mergeroot") |
30 |
- print "embedded root path is "+self.settings["root_path"] |
31 |
+ log.info('embedded root path is %s', self.settings['root_path']) |
32 |
diff --git a/catalyst/targets/grp.py b/catalyst/targets/grp.py |
33 |
index 4814ac6..b37366c 100644 |
34 |
--- a/catalyst/targets/grp.py |
35 |
+++ b/catalyst/targets/grp.py |
36 |
@@ -7,7 +7,7 @@ import os |
37 |
import types |
38 |
import glob |
39 |
|
40 |
- |
41 |
+from catalyst import log |
42 |
from catalyst.support import (CatalystError, normpath, cmd, list_bashify) |
43 |
from catalyst.fileops import ensure_dirs |
44 |
from catalyst.base.stagebase import StageBase |
45 |
@@ -44,7 +44,7 @@ class grp(StageBase): |
46 |
self.settings["target_path"]=normpath(self.settings["storedir"]+"/builds/"+self.settings["target_subpath"]) |
47 |
if "autoresume" in self.settings["options"] \ |
48 |
and self.resume.is_enabled("setup_target_path"): |
49 |
- print "Resume point detected, skipping target path setup operation..." |
50 |
+ log.notice('Resume point detected, skipping target path setup operation...') |
51 |
else: |
52 |
# first clean up any existing target stuff |
53 |
#if os.path.isdir(self.settings["target_path"]): |
54 |
@@ -82,7 +82,7 @@ class grp(StageBase): |
55 |
for pkgset in self.settings["grp"]: |
56 |
if self.settings["grp/"+pkgset+"/type"] == "pkgset": |
57 |
destdir=normpath(self.settings["target_path"]+"/"+pkgset+"/All") |
58 |
- print "Digesting files in the pkgset....." |
59 |
+ log.notice('Digesting files in the pkgset...') |
60 |
digests=glob.glob(destdir+'/*.DIGESTS') |
61 |
for i in digests: |
62 |
if os.path.exists(i): |
63 |
@@ -97,7 +97,7 @@ class grp(StageBase): |
64 |
self.gen_digest_file(normpath(destdir+"/"+i)) |
65 |
else: |
66 |
destdir=normpath(self.settings["target_path"]+"/"+pkgset) |
67 |
- print "Digesting files in the srcset....." |
68 |
+ log.notice('Digesting files in the srcset...') |
69 |
|
70 |
digests=glob.glob(destdir+'/*.DIGESTS') |
71 |
for i in digests: |
72 |
-- |
73 |
2.5.2 |