changeset 194:8dbddcd0ef00

Fix target platform matching when a rule references a property not provided by the build slave. Closes #45.
author cmlenz
date Mon, 12 Sep 2005 16:01:08 +0000
parents 5238e94c9fd1
children bd6234ed6ac5
files bitten/master.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/master.py
+++ b/bitten/master.py
@@ -155,7 +155,8 @@
                 match = True
                 for propname, pattern in ifilter(None, platform.rules):
                     try:
-                        if not re.match(pattern, handler.info.get(propname)):
+                        propvalue = handler.info.get(propname)
+                        if not propvalue or not re.match(pattern, propvalue):
                             match = False
                             break
                     except re.error:
Copyright (C) 2012-2017 Edgewall Software