[nfft] 06/11: Replace occurrences of findstring by filter

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 20 17:53:15 UTC 2017


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

ghisvail-guest pushed a commit to branch debian/experimental
in repository nfft.

commit 8bd98ee26f0aee2df759fbefcfcb7c80489a2e22
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Sep 19 22:10:14 2017 +0200

    Replace occurrences of findstring by filter
---
 debian/rules | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 7da9848..4ee01b7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,14 +12,14 @@ export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
 
 # Available precisions.
 PRECISIONS = single double
-ifneq (,$(findstring libnfft3-long2,$(shell dh_listpackages)))
+ifneq (,$(filter libnfft3-long2,$(shell dh_listpackages)))
 	PRECISIONS+=long
 endif
 
 # Tested precisions.
 # NOTE: Testing is temporarily restricted to single- and double-precision
 # builds on powerpc architectures. See Bug-Debian #844403.
-ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),powerpc ppc64el))
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU),powerpc ppc64el))
 	TESTED_PRECISIONS=single double
 else
 	TESTED_PRECISIONS=$(PRECISIONS)
@@ -47,7 +47,7 @@ override_dh_auto_configure-arch:
 		--enable-single
 	dh_auto_configure --builddirectory=build-double -- \
 		$(BUILD_OPTIONS)
-ifneq (,$(findstring long,$(PRECISIONS)))
+ifneq (,$(filter long,$(PRECISIONS)))
 	dh_auto_configure --builddirectory=build-long -- \
 		$(BUILD_OPTIONS) \
 		--enable-long-double

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/nfft.git



More information about the debian-science-commits mailing list