[Python-modules-commits] r20640 - in packages/python-docutils/trunk/debian (changelog rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Fri Mar 2 01:00:42 UTC 2012


    Date: Friday, March 2, 2012 @ 01:00:39
  Author: jwilk
Revision: 20640

Check only *.py files when looking for unguarded use of __file__.

Modified:
  packages/python-docutils/trunk/debian/changelog
  packages/python-docutils/trunk/debian/rules

Modified: packages/python-docutils/trunk/debian/changelog
===================================================================
--- packages/python-docutils/trunk/debian/changelog	2012-03-02 00:42:01 UTC (rev 20639)
+++ packages/python-docutils/trunk/debian/changelog	2012-03-02 01:00:39 UTC (rev 20640)
@@ -7,8 +7,9 @@
   * Remove references to http://diveintopython.org/ from debian/copyright.
   * Do not skip tests because of failed imports, as they should never happen.
     (no-test-skipping.diff)
+  * Check only *.py files when looking for unguarded use of __file__.
 
- -- Jakub Wilk <jwilk at debian.org>  Fri, 02 Mar 2012 01:39:17 +0100
+ -- Jakub Wilk <jwilk at debian.org>  Fri, 02 Mar 2012 01:59:54 +0100
 
 python-docutils (0.8.1-5) unstable; urgency=low
 

Modified: packages/python-docutils/trunk/debian/rules
===================================================================
--- packages/python-docutils/trunk/debian/rules	2012-03-02 00:42:01 UTC (rev 20639)
+++ packages/python-docutils/trunk/debian/rules	2012-03-02 01:00:39 UTC (rev 20640)
@@ -27,7 +27,7 @@
 build-stamp:
 	dh_testdir
 	# Check if move-data-to-usr-share.diff is up-to-date
-	if grep -r __file__ docutils/ | grep -vw _datadir; then \
+	if grep -r __file__ --include='*.py' docutils/ | grep -vw _datadir; then \
 		echo "Error: Some uses of __file__ are not guarded by _datadir()." \
 			"Is move-data-to-usr-share.diff up-to-date?"; \
 		exit 1; \




More information about the Python-modules-commits mailing list