[Reproducible-builds] [dh-python] 72/183: add fallback code to prerm-py3clean
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 336a22c8438a48a05fb175b11a5b767779be79e8
Author: Piotr Ożarowski <piotr at debian.org>
Date: Thu Aug 8 12:05:01 2013 +0200
add fallback code to prerm-py3clean
---
autoscripts/prerm-py3clean | 3 +++
1 file changed, 3 insertions(+)
diff --git a/autoscripts/prerm-py3clean b/autoscripts/prerm-py3clean
index c5fb82a..caa9666 100644
--- a/autoscripts/prerm-py3clean
+++ b/autoscripts/prerm-py3clean
@@ -1,3 +1,6 @@
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
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