[Reproducible-builds] [dh-python] 74/183: use find -print0 | xrags --null

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:22 UTC 2014


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

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit 7a2e62ee574887291a986034bdd2f5e753819c17
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Fri Aug 9 12:03:08 2013 +0200

    use find -print0  | xrags --null
---
 autoscripts/prerm-py3clean  | 2 +-
 autoscripts/prerm-pypyclean | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoscripts/prerm-py3clean b/autoscripts/prerm-py3clean
index caa9666..c0aadfa 100644
--- a/autoscripts/prerm-py3clean
+++ b/autoscripts/prerm-py3clean
@@ -2,5 +2,5 @@ if which py3clean >/dev/null 2>&1; then
 	py3clean -p #PACKAGE# #ARGS#
 else
 	dpkg -L #PACKAGE# | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
-	find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty | xargs --no-run-if-empty rmdir
+	find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
 fi
diff --git a/autoscripts/prerm-pypyclean b/autoscripts/prerm-pypyclean
index 7886b63..5cc2869 100644
--- a/autoscripts/prerm-pypyclean
+++ b/autoscripts/prerm-pypyclean
@@ -2,5 +2,5 @@ if which pypyclean >/dev/null 2>&1; then
 	pypyclean -p #PACKAGE# #ARGS#
 else
 	dpkg -L #PACKAGE# | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
-	find /usr/lib/pypy/dist-packages/ -type d -name __pycache__ -empty | xargs --no-run-if-empty rmdir
+	find /usr/lib/pypy/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
 fi

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



More information about the Reproducible-builds mailing list