[Python-modules-commits] r16865 - in packages/python-django/trunk/debian (rules)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Mon May 2 20:34:49 UTC 2011
Date: Monday, May 2, 2011 @ 20:34:47
Author: piotr
Revision: 16865
FTBFS if a command in the loop fails
Modified:
packages/python-django/trunk/debian/rules
Modified: packages/python-django/trunk/debian/rules
===================================================================
--- packages/python-django/trunk/debian/rules 2011-05-02 20:27:17 UTC (rev 16864)
+++ packages/python-django/trunk/debian/rules 2011-05-02 20:34:47 UTC (rev 16865)
@@ -42,7 +42,7 @@
dh_install
# Use default shebang and m move scripts to /usr/lib/python-django
- for ver in $(shell pyversions -vr); do \
+ set -e; for ver in $(shell pyversions -vr); do \
FILE=$(PREFIX)/$(call py_libdir_sh,$$ver)/django/conf/project_template/manage.py; \
if [ -f $$FILE ]; then\
perl -pi -e 's|^#!/usr/bin/env python.*|#!/usr/bin/python|' $$FILE;\
@@ -63,7 +63,7 @@
mv $(PREFIX)/usr/bin/django-admin.py $(PREFIX)/usr/bin/django-admin
# Remove embedded Javascript libraries
- for FILENAME in jquery.js jquery.min.js; do \
+ set -e; for FILENAME in jquery.js jquery.min.js; do \
find $(PREFIX) -name $$FILENAME -exec \
ln -sf /usr/share/javascript/jquery/$$FILENAME {} \;; \
done
More information about the Python-modules-commits
mailing list