Skip to content

Commit

Permalink
BF: for building arch packages with no arch indep ones, find should b…
Browse files Browse the repository at this point in the history
…e conditioned
  • Loading branch information
yarikoptic committed Nov 6, 2015
1 parent 2366b5c commit 82fb053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82fb053

Please sign in to comment.