[Pkg-mongodb-maintainers] [pkg-mongodb] 369/394: d/rules: lint: use filter instead of findstring

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 14:00:34 UTC 2016


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

apoikos pushed a commit to branch master
in repository pkg-mongodb.

commit f19ecbb2fba7aba2d0d1034810ba183b8369d4f0
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Wed Feb 10 23:59:40 2016 +0200

    d/rules: lint: use filter instead of findstring
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 6210b9e..5ffc5ea 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 #export DH_VERBOSE=1
 
 DEB_SCONS_OPTIONS :=
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
 	DEB_SCONS_OPTIONS := --d=DEBUGBUILD
 endif
 
@@ -13,7 +13,7 @@ ifeq (,$(filter nodbgsym,$(DEB_BUILD_OPTIONS)))
        DEB_SCONS_OPTIONS += --nostrip
 endif
 
-ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        PROCS=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
        DEB_SCONS_OPTIONS += -j$(PROCS)
 endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git



More information about the Pkg-mongodb-maintainers mailing list