From 82fb053536803f172def9f64e0d62151529173a0 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko <debian@onerussian.com> Date: Fri, 6 Nov 2015 08:53:51 -0500 Subject: [PATCH] BF: for building arch packages with no arch indep ones, find should be conditioned --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 3de8b07142..1240026050 100755 --- a/debian/rules +++ b/debian/rules @@ -87,7 +87,8 @@ override_dh_installchangelogs: ## remove .so libraries from main package, and call dh_numpy* ## while removing 2 if not present _dh_python%: - find debian/python$(*:2=)-sklearn/usr/lib -name "*.so" -delete; + [ ! -e debian/python$(*:2=)-sklearn ] \ + || find debian/python$(*:2=)-sklearn/usr/lib -name "*.so" -delete; [ -e /usr/bin/dh_numpy$(*:2=) ] && dh_numpy$(*:2=) -ppython$(*:2=)-sklearn-lib || : : # Prune scikits/__init__.py to avoid conflicts find debian -wholename \*scikits/__init__.py -delete -- GitLab