summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-06 01:44:59 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-06 01:47:39 +0100
commit62893be60dd7b84cc24c84d6e6e88c026a4381a5 (patch)
treebc074a6f7875158f7545289a46161b10130f05a6
parent420092b2b8b4bf1154bb885fd23d8d03fc1415d8 (diff)
Only print Config.arch/srcarch if non-None.
Also, Config.srctree cannot be None.
-rw-r--r--kconfiglib.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index ed6c930..1e5caad 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -899,9 +899,12 @@ class Config():
return _sep_lines("Configuration",
"File : " + self.filename,
"Base directory : " + self.base_dir,
- "Value of $ARCH at creation time : " + self.arch,
- "Value of $SRCARCH at creation time : " + self.srcarch,
- "Value of $srctree at creation time : " + self.srctree,
+ "Value of $ARCH at creation time : " +
+ ("(not set)" if self.arch is None else self.arch),
+ "Value of $SRCARCH at creation time : " +
+ ("(not set)" if self.srcarch is None else self.srcarch),
+ "Source tree (derived from $srctree;",
+ "defaults to '.' if $srctree isn't set) : " + self.srctree,
"Most recently loaded .config : " +
("(no .config loaded)" if self.config_filename is None else
self.config_filename),