[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-105-gac1319a

Andreas Beckmann anbe at debian.org
Fri Mar 1 15:32:51 UTC 2013


The following commit has been merged in the piatti branch:
commit dcb06ae02966646c9d0526148cacd1639729d394
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Feb 11 01:46:21 2013 +0100

    Makefile: perform syntax check on *.py before installation
    
    to avoid trivial errors being put into production by update-piuparts-setup
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/Makefile b/Makefile
index a0167af..6241235 100644
--- a/Makefile
+++ b/Makefile
@@ -59,8 +59,12 @@ install-conf-4-running-from-git:
 	install -d $(DESTDIR)$(sharedir)/piuparts/slave
 	install -m 0755 update-piuparts-setup $(DESTDIR)$(sharedir)/piuparts/slave/
 
-build:
-	for file in piuparts piuparts-slave piuparts-master piuparts-report piuparts-analyze; do \
+python-syntax-check:
+	@set -e -x; $(foreach py,$(wildcard *.py piupartslib/*.py),python -m py_compile $(py);)
+
+build: python-syntax-check
+	@set -e -x ; \
+		for file in piuparts piuparts-slave piuparts-master piuparts-report piuparts-analyze; do \
 		sed -e 's/__PIUPARTS_VERSION__/$(version)/g' $$file.py > $$file ; done
 
 install:
diff --git a/debian/changelog b/debian/changelog
index 85948db..4dd4043 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ piuparts (0.50) UNRELEASED; urgency=low
   * piuparts-analyze.py:
     - Add support for magic "$DISTRO/None" versions.
   * piuparts-report.py:
+  * Makefile:
+    - Perform syntax check on *.py before installation.
   * pre_install_exceptions: Handle bootcd-ia64 installation in squeeze.
   * post_distupgrade_exceptions: Handle libdb4.8 removal in wheezy.
   * pre_remove_50_find_bad_permissions: Add some exceptions.

-- 
piuparts git repository



More information about the Piuparts-commits mailing list