summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/macros.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-02-02 10:59:21 +1100
committerChris Johns <chrisj@rtems.org>2018-02-05 14:22:27 +1100
commit652a90f0a8613ee3bc4112a69137730b5abd9938 (patch)
treef462f74e3e2ce3758a1ae4d2cce87aee54429a78 /source-builder/sb/macros.py
parentsb: Backport from 4.11 the --rsb-file with releases fixes. (diff)
downloadrtems-source-builder-652a90f0a8613ee3bc4112a69137730b5abd9938.tar.bz2
sb: Back port changes to support mailing list posting.
Close #3287
Diffstat (limited to 'source-builder/sb/macros.py')
-rw-r--r--source-builder/sb/macros.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/source-builder/sb/macros.py b/source-builder/sb/macros.py
index 2af8d36..28a52b2 100644
--- a/source-builder/sb/macros.py
+++ b/source-builder/sb/macros.py
@@ -447,6 +447,9 @@ class macros:
if key in self.macros[map]:
del self.macros[map][key]
+ def defined(self, key, globals = True, maps = None):
+ return self.get(key, globals, maps) is not None
+
def expand(self, _str):
"""Simple basic expander of config file macros."""
expanded = True