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 d9c5f050de28d05f89cac0b703477f2993c670be
Author: Jakub Wilk <jw...@debian.org>
Date:   Wed Aug 7 18:45:32 2013 +0200

    dh_pypy: fix prerm
    
    - wildcard supported again
    - only one forked command, no more grep, sed, xargs and rm
---
 autoscripts/prerm-pypyclean | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoscripts/prerm-pypyclean b/autoscripts/prerm-pypyclean
index b3d187c..7886b63 100644
--- a/autoscripts/prerm-pypyclean
+++ b/autoscripts/prerm-pypyclean
@@ -1,6 +1,6 @@
 if which pypyclean >/dev/null 2>&1; then
        pypyclean -p #PACKAGE# #ARGS#
 else
-       dpkg -L #PACKAGE# | grep '\.py$' | sed -r 
's,/([^/]*).py$,/__pycache__/\1\.pyc,' | xargs --no-run-if-empty rm
+       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
 fi

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

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to