[Python-modules-commits] [python-django-registration] 01/05: rules: Make po cleanup work for multiple packages.

Stephan Suerken absurd at moszumanska.debian.org
Wed Aug 24 12:33:46 UTC 2016


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

absurd pushed a commit to branch master
in repository python-django-registration.

commit 347c14ac957663fe2f2d9fcdf7a98635dfc7f39d
Author: Stephan Sürken <absurd at olurdix.de>
Date:   Wed Aug 24 10:12:00 2016 +0000

    rules: Make po cleanup work for multiple packages.
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index bf72272..6b57d6c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-PKG = $(shell dh_listpackages)
+PKGS = $(shell dh_listpackages)
 
 %:
 	dh $@ --with python2,sphinxdoc
@@ -17,7 +17,7 @@ override_dh_auto_build:
 override_dh_auto_install:
 	dh_auto_install
 	# Drop .po files and keep only .mo files (compiled)
-	find debian/$(PKG)/ -name '*.po' -exec rm {} \;
+	$(foreach P,$(PKGS),find debian/$(P)/ -name '*.po' -exec rm -v {} \; ;)
 
 # See docs/faq.rst
 override_dh_auto_test:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-registration.git



More information about the Python-modules-commits mailing list