8000 BF: for building arch packages with no arch indep ones, find should b… · rubik/scikit-learn@82fb053 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82fb053

Browse files
committed
BF: for building arch packages with no arch indep ones, find should be conditioned
1 parent 2366b5c commit 82fb053
< 8000 div class="d-none">

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

debian/rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ override_dh_installchangelogs:
8787
## remove .so libraries from main package, and call dh_numpy*
8888
## while removing 2 if not present
8989
_dh_python%:
90-
find debian/python$(*:2=)-sklearn/usr/lib -name "*.so" -delete;
90+
[ ! -e debian/python$(*:2=)-sklearn ] \
91+
|| find debian/python$(*:2=)-sklearn/usr/lib -name "*.so" -delete;
9192
[ -e /usr/bin/dh_numpy$(*:2=) ] && dh_numpy$(*:2=) -ppython$(*:2=)-sklearn-lib || :
9293
: # Prune scikits/__init__.py to avoid conflicts
9394
find debian -wholename \*scikits/__init__.py -delete

0 commit comments

Comments
 (0)
0