From 2470a8e579846495d57d72712e6642e20578fd36 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Thu, 4 Oct 2018 10:37:44 -0600 Subject: Bugfix on packaging init syntax change Signed-off-by: Mats Wichmann --- src/engine/SCons/Tool/packaging/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Tool/packaging/__init__.py b/src/engine/SCons/Tool/packaging/__init__.py index d4e5f3d..6261f98 100644 --- a/src/engine/SCons/Tool/packaging/__init__.py +++ b/src/engine/SCons/Tool/packaging/__init__.py @@ -295,8 +295,9 @@ def stripinstallbuilder(target, source, env): It also warns about files which have no install builder attached. """ def has_no_install_location(file): - return not file.has_builder() and hasattr(file.builder, 'name') \ - and file.builder.name in ["InstallBuilder", "InstallAsBuilder"] + return not (file.has_builder() and hasattr(file.builder, 'name') + and file.builder.name in ["InstallBuilder", "InstallAsBuilder"]) + if len([src for src in source if has_no_install_location(src)]): warn(Warning, "there are files to package which have no\ -- cgit v0.12