From 1fce8684a10fd08fb4d6bf71294c5516fb3c5c7a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Mar 2020 15:06:51 +0100 Subject: Using execute_after targets in rules to be explicit what we're doing. Signed-off-by: Daniel Baumann --- debian/control | 3 ++- debian/rules | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 32db327..26c49bf 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,8 @@ Source: gitlint Section: utils Priority: optional Maintainer: Daniel Baumann -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper (>= 12.8~), + debhelper-compat (= 12), dh-python, git, pylint, diff --git a/debian/rules b/debian/rules index 3c40bc7..8ba7386 100755 --- a/debian/rules +++ b/debian/rules @@ -9,8 +9,9 @@ export PYBUILD_TEST_ARGS=python{version} -m coverage run --omit='/usr/*,$(CURDIR override_dh_auto_test: PYBUILD_SYSTEM=custom dh_auto_test -override_dh_install: - dh_install +execute_after_dh_auto_install: # we don't want them in the package? rm -rf debian/gitlint/usr/lib/python*/dist-packages/qa + +execute_after_dh_fixperms: find debian/gitlint/usr/lib -name commit-msg -exec chmod +x {} \; -- cgit v1.2.3