[Python-modules-commits] r21700 - in packages/django-auth-ldap/trunk/debian (control rules)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Fri May 11 06:12:05 UTC 2012


    Date: Friday, May 11, 2012 @ 06:12:02
  Author: fladi-guest
Revision: 21700

Allow to build on django (>= 1.2).

Modified:
  packages/django-auth-ldap/trunk/debian/control
  packages/django-auth-ldap/trunk/debian/rules

Modified: packages/django-auth-ldap/trunk/debian/control
===================================================================
--- packages/django-auth-ldap/trunk/debian/control	2012-05-11 00:10:58 UTC (rev 21699)
+++ packages/django-auth-ldap/trunk/debian/control	2012-05-11 06:12:02 UTC (rev 21700)
@@ -5,7 +5,7 @@
 Uploaders: Michael Fladischer <FladischerMichael at fladi.at>
 Build-Depends: debhelper (>= 7.0.50~),
                python-all (>= 2.6.6-3~),
-               python-django (>= 1.4),
+               python-django (>= 1.2),
                python-sphinx (>= 1.0.7+dfsg)
 Standards-Version: 3.9.3
 X-Python-Version: >= 2.3

Modified: packages/django-auth-ldap/trunk/debian/rules
===================================================================
--- packages/django-auth-ldap/trunk/debian/rules	2012-05-11 00:10:58 UTC (rev 21699)
+++ packages/django-auth-ldap/trunk/debian/rules	2012-05-11 06:12:02 UTC (rev 21700)
@@ -12,7 +12,11 @@
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	django-admin startproject testproject
-	cp debian/settings.py testproject/testproject/settings.py
+	if [ -d testproject/testproject ]; then \
+		cp debian/settings.py testproject/testproject/settings.py; \
+	else \
+		cp debian/settings.py testproject ; \
+	fi
 	for python in $(shell pyversions -r); do \
 	  rm -f testproject/test.db3 ; \
 	  PYTHONPATH=".:src:testproject" $$python testproject/manage.py syncdb --settings=testproject.settings --noinput ;\




More information about the Python-modules-commits mailing list