[Pkg-mpd-commits] [python-mpd] 07/19: Run dh_install with --fail-missing to catch mistakes

Simon McVittie smcv at debian.org
Sun May 22 18:17:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/experimental
in repository python-mpd.

commit 7f7eb82db7d5146dcf2455914c7a312c918420af
Author: Simon McVittie <smcv at debian.org>
Date:   Sat Apr 30 14:57:24 2016 +0100

    Run dh_install with --fail-missing to catch mistakes
    
      - specifically don't install mpd_test.py, not needed
---
 debian/changelog | 2 ++
 debian/rules     | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7cd6b24..a73648e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ python-mpd (0.5.5-1) UNRELEASED; urgency=medium
     - add python3-mpd package
     - ship documentation
     - add .install files to install everything
+  * Run dh_install with --fail-missing to catch mistakes
+    - specifically don't install mpd_test.py, not needed
 
  -- Simon McVittie <smcv at debian.org>  Sat, 30 Apr 2016 13:43:38 +0100
 
diff --git a/debian/rules b/debian/rules
index efdc47b..67b800b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,9 @@ export PYBUILD_DISABLE=test
 
 override_dh_installchangelogs:
 	dh_installchangelogs doc/changes.rst
+
+override_dh_install:
+	rm -f debian/tmp/usr/lib/*/dist-packages/mpd_test.py
+	rm -f debian/tmp/usr/lib/*/dist-packages/*.py[co]
+	rm -fr debian/tmp/usr/lib/*/dist-packages/__pycache__
+	dh_install --fail-missing

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git



More information about the Pkg-mpd-commits mailing list