[Python-apps-commits] r8491 - in packages/sinntp/trunk/debian (changelog rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Wed Apr 18 20:46:48 UTC 2012


    Date: Wednesday, April 18, 2012 @ 20:46:45
  Author: jwilk
Revision: 8491

Use xargs to iterate over all Python versions.

Modified:
  packages/sinntp/trunk/debian/changelog
  packages/sinntp/trunk/debian/rules

Modified: packages/sinntp/trunk/debian/changelog
===================================================================
--- packages/sinntp/trunk/debian/changelog	2012-04-18 20:45:21 UTC (rev 8490)
+++ packages/sinntp/trunk/debian/changelog	2012-04-18 20:46:45 UTC (rev 8491)
@@ -8,8 +8,9 @@
   * Bump standards version to 3.9.3.
     + Update debian/copyright URI.
   * Update the copyright file.
+  * Use xargs to iterate over all Python versions.
 
- -- Jakub Wilk <jwilk at debian.org>  Wed, 18 Apr 2012 22:43:26 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 18 Apr 2012 22:46:09 +0200
 
 sinntp (1.4-1) unstable; urgency=low
 

Modified: packages/sinntp/trunk/debian/rules
===================================================================
--- packages/sinntp/trunk/debian/rules	2012-04-18 20:45:21 UTC (rev 8490)
+++ packages/sinntp/trunk/debian/rules	2012-04-18 20:46:45 UTC (rev 8491)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+python_all = pyversions -r | tr ' ' '\n' | xargs -t -I {} env {}
+
 %: 
 	dh $@
 
@@ -9,10 +11,7 @@
 
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
-	set -e; \
-	for python in $(shell pyversions -s); do \
-		$$python tests.py; \
-	done
+	$(python_all) tests.py
 endif
 
 # vim:ts=4 sw=4 noet




More information about the Python-apps-commits mailing list