Skip to content

Commit

Permalink
debian: do not run dh-python against non-python packages
Browse files Browse the repository at this point in the history
some packages do not package python modules or scripts. so override
dh_python2 to exclude them.

this change silences warnings like:
```
warning: dpkg-gencontrol: package ceph-mon: unused substitution
variable ${python:Provides}
```

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Jul 22, 2016
1 parent aacba7f commit abe5da0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ override_dh_strip:
override_dh_shlibdeps:
dh_shlibdeps -a --exclude=erasure-code --exclude=rados-classes --exclude=compressor

override_dh_python2:
for binding in rados cephfs rbd; do \
dh_python2 -p python-$$binding; \
done
dh_python2 -p ceph-common
dh_python2 -p ceph-base
dh_python2 -p ceph-osd

# do not run tests
override_dh_auto_test:

Expand Down

0 comments on commit abe5da0

Please sign in to comment.