summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <oss@c-mauderer.de>2016-11-06 23:25:24 +0100
committerChris Johns <chrisj@rtems.org>2016-11-07 10:05:13 +1100
commitb6272bbd566c1ee82667fd2728e6bbc55d0a4086 (patch)
tree20f29461612310080e595124881d7ccbf71a95b4
parentREADME: Update with more host specific details. (diff)
downloadrtems-docs-b6272bbd566c1ee82667fd2728e6bbc55d0a4086.tar.bz2
waf: Fix ''NoneType' object is not iterable'
-rw-r--r--common/latex.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/latex.py b/common/latex.py
index b0cca19..acbd341 100644
--- a/common/latex.py
+++ b/common/latex.py
@@ -126,10 +126,12 @@ def configure_tests(conf):
bld(features = 'tex', type = 'pdflatex', source = 'main.tex', prompt = 0)
tests = sorted(package_tests.keys())
- excludes = [p[:p.rfind('.')] for p in local_packages()]
- for e in excludes:
- if e in tests:
- tests.remove(e)
+ local_packs = local_packages()
+ if local_packs is not None:
+ excludes = [p[:p.rfind('.')] for p in local_packs]
+ for e in excludes:
+ if e in tests:
+ tests.remove(e)
fails = 0
for t in tests: