[Python-modules-commits] r17275 - in packages/pyke/trunk/debian (rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Fri Jun 3 00:33:03 UTC 2011


    Date: Friday, June 3, 2011 @ 00:33:01
  Author: eriol-guest
Revision: 17275

Fixed path debug setting even on ext4 due mtime precision. Many thanks to Jakub Wilk

Modified:
  packages/pyke/trunk/debian/rules

Modified: packages/pyke/trunk/debian/rules
===================================================================
--- packages/pyke/trunk/debian/rules	2011-06-03 00:13:04 UTC (rev 17274)
+++ packages/pyke/trunk/debian/rules	2011-06-03 00:33:01 UTC (rev 17275)
@@ -3,18 +3,18 @@
 	dh $@
 
 override_dh_auto_configure:
-	rm -rf pyke/krb_compiler/ply/
+	rm -rf pyke/krb_compiler/ply/ pyke/krb_compiler/*_tables.py
+
+override_dh_auto_install:
 	# Regenerating python-ply cached tables
+	rm -f pyke/krb_compiler/*_tables.py
 	python -c "from pyke.krb_compiler import kfbparser, krbparser, scanner; \
 		scanner.init(scanner, 0, True); \
 		krbparser.init(krbparser, True); \
 		kfbparser.init(kfbparser, True)"
-
-override_dh_auto_install:
+	# Set the correct debug path inside tables
+	sed -i 's:pyke/krb_compiler:/usr/share/pyshared/pyke/krb_compiler:' pyke/krb_compiler/*_tables.py
 	dh_auto_install
-	# Set the correct debug path inside tables
-	sed -i 's:pyke/krb_compiler:/usr/share/pyshared/pyke/krb_compiler:' \
-		debian/tmp/usr/lib/python2.*/*-packages/pyke/krb_compiler/*_tables.py;
 
 override_dh_auto_test:
 	# Run tests twice to make sure that all of the tests run properly




More information about the Python-modules-commits mailing list