[Python-modules-commits] r23296 - in packages/simplejson/trunk/debian (2 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Sun Jan 13 16:50:09 UTC 2013


    Date: Sunday, January 13, 2013 @ 16:50:05
  Author: piotr
Revision: 23296

improve pypy-simplejson's maintainer scripts

Modified:
  packages/simplejson/trunk/debian/pypy-simplejson.postinst
  packages/simplejson/trunk/debian/pypy-simplejson.prerm

Modified: packages/simplejson/trunk/debian/pypy-simplejson.postinst
===================================================================
--- packages/simplejson/trunk/debian/pypy-simplejson.postinst	2013-01-13 16:32:46 UTC (rev 23295)
+++ packages/simplejson/trunk/debian/pypy-simplejson.postinst	2013-01-13 16:50:05 UTC (rev 23296)
@@ -1,5 +1,8 @@
 #!/bin/sh
 set -e
 
-find /usr/lib/pypy/dist-packages/simplejson/ \
- -name '*.py' | pypy -m py_compile - >/dev/null
+if which pypy >/dev/null 2>&1; then
+  dpkg -L pypy-simplejson | grep '\.py$' | pypy -m py_compile - >/dev/null
+fi
+
+#DEBHELPER#

Modified: packages/simplejson/trunk/debian/pypy-simplejson.prerm
===================================================================
--- packages/simplejson/trunk/debian/pypy-simplejson.prerm	2013-01-13 16:32:46 UTC (rev 23295)
+++ packages/simplejson/trunk/debian/pypy-simplejson.prerm	2013-01-13 16:50:05 UTC (rev 23296)
@@ -3,3 +3,5 @@
 
 find /usr/lib/pypy/dist-packages/simplejson/ \
  -type d -name __pycache__ | xargs rm -rf
+
+#DEBHELPER#




More information about the Python-modules-commits mailing list