[rtems-docs commit] waf: Fix ''NoneType' object is not iterable'
Chris Johns
chrisj at rtems.org
Sun Nov 6 23:05:28 UTC 2016
Module: rtems-docs
Branch: master
Commit: b6272bbd566c1ee82667fd2728e6bbc55d0a4086
Changeset: http://git.rtems.org/rtems-docs/commit/?id=b6272bbd566c1ee82667fd2728e6bbc55d0a4086
Author: Christian Mauderer <oss at c-mauderer.de>
Date: Sun Nov 6 23:25:24 2016 +0100
waf: Fix ''NoneType' object is not iterable'
---
common/latex.py | 10 ++++++----
1 file 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:
More information about the vc
mailing list