This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c0dde13fd6cccea101dc72b3705d8d6d4e7a9ed7

commit c0dde13fd6cccea101dc72b3705d8d6d4e7a9ed7
Author: Nicolas Boulenguez <[email protected]>
AuthorDate: Tue Apr 9 04:47:05 2024 +0200

    scripts/mk: Use filter instead of findstring
    
    $(filter nostrip,$(DEB_BUILD_OPTIONS)) is slightly better than
    $(findstring) because the latter matches 'arduinostrip'.
    
    Signed-off-by: Guillem Jover <[email protected]>
---
 scripts/mk/buildtools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mk/buildtools.mk b/scripts/mk/buildtools.mk
index 7ee77f69b..f93e64c69 100644
--- a/scripts/mk/buildtools.mk
+++ b/scripts/mk/buildtools.mk
@@ -36,7 +36,7 @@ include $(dpkg_datadir)/architecture.mk
 # not defined or contain the make built-in defaults. On native builds if
 # TOOL is defined and TOOL_FOR_BUILD is not, we fallback to use TOOL.
 define dpkg_buildtool_setvar
-  ifeq (,$(findstring $(3),$(DEB_BUILD_OPTIONS)))
+  ifeq (,$(filter $(3),$(DEB_BUILD_OPTIONS)))
     ifeq ($(origin $(1)),default)
       $(1) = $(DEB_HOST_GNU_TYPE)-$(2)
     else

-- 
Dpkg.Org's dpkg

Reply via email to