summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/configs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/configs.py b/pkg/configs.py
index 1d39088..011793e 100644
--- a/pkg/configs.py
+++ b/pkg/configs.py
@@ -112,7 +112,7 @@ def find_buildsets(bld):
'good': True,
'dry-run': False
} for b in discovered if b not in bs_default]
- if bld.env.BUILD_FILTER is not None:
+ if len(bld.env.BUILD_FILTER) > 0:
bf = re.compile(bld.env.BUILD_FILTER)
bs = [b for b in bs if bf.match(b['buildset'])]
return sorted(bs, key=lambda bs: bs['buildset'])