]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: do not run dh-python against non-python packages
authorKefu Chai <kchai@redhat.com>
Sun, 17 Jul 2016 08:56:59 +0000 (16:56 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Jul 2016 06:23:30 +0000 (14:23 +0800)
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 <kchai@redhat.com>
debian/rules

index 60603bfc1295e8ba178c20fe28563cadcc3b13dc..d1baaf433b5e5a89f87a427b15d3d56c1cbad2bd 100755 (executable)
@@ -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: