[debian] don't use sub-shells, and don't ignore errors from loops stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 02 Aug 2013 18:20:33 +0200
branchstable
changeset 713 428421ffeb06
parent 712 0f967bf3a5de
child 714 2218f38af251
[debian] don't use sub-shells, and don't ignore errors from loops Related to #159003
debian/rules
--- a/debian/rules	Fri Aug 02 18:17:03 2013 +0200
+++ b/debian/rules	Fri Aug 02 18:20:33 2013 +0200
@@ -14,10 +14,11 @@
 build: build-stamp
 build-stamp:
 	dh_testdir
-	(for PYTHON in `pyversions -r`; do \
-	    NO_SETUPTOOLS=1 $${PYTHON} setup.py build ; done )
-	${MAKE} -C doc html || true
+	for PYTHON in `pyversions -r`; do \
+	    NO_SETUPTOOLS=1 $${PYTHON} setup.py build || exit; done
+	$(MAKE) -C doc html || true
 	touch build-stamp
+
 clean:
 	dh_testdir
 	dh_testroot
@@ -32,13 +33,13 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	(for PYTHON in `pyversions -r`; do \
-		NO_SETUPTOOLS=1 $${PYTHON} setup.py install --no-compile --prefix=debian/python-rql/usr/ ; \
-	done)
+	for PYTHON in `pyversions -r`; do \
+		NO_SETUPTOOLS=1 $${PYTHON} setup.py install --no-compile --prefix=debian/python-rql/usr/ || exit; \
+	done
 	# remove test directory (installed in in the doc directory)
 	rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test
 	# install tests
-	(cd test && find . -type f -not \( -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/python-rql/usr/share/doc/python-rql/test/{} \;)
+	cd test && find . -type f -not \( -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/python-rql/usr/share/doc/python-rql/test/{} \;
 
 # Build architecture-independent files here.
 binary-indep: