[Python-modules-commits] r29837 - in packages/python-django/trunk/debian (django-admin)

bam at users.alioth.debian.org bam at users.alioth.debian.org
Mon Jul 21 00:51:38 UTC 2014


    Date: Monday, July 21, 2014 @ 00:51:37
  Author: bam
Revision: 29837

Simplify.

Modified:
  packages/python-django/trunk/debian/django-admin

Modified: packages/python-django/trunk/debian/django-admin
===================================================================
--- packages/python-django/trunk/debian/django-admin	2014-07-21 00:40:02 UTC (rev 29836)
+++ packages/python-django/trunk/debian/django-admin	2014-07-21 00:51:37 UTC (rev 29837)
@@ -1,15 +1,15 @@
 #!/bin/sh
 sh=''''
 # shell code
-if test -x /usr/bin/python3 && test -e /usr/lib/python3/dist-packages/django/bin/django-admin.py
+if command -v python3 > /dev/null && test -e /usr/lib/python3/dist-packages/django/bin/django-admin.py
 then
-    exec python3 /usr/lib/python3/dist-packages/django/bin/django-admin.py "$@"
-elif test -x /usr/bin/python2.7 && test -e /usr/lib/python2.7/dist-packages/django/bin/django-admin.py
+    exec python3 "$0" "$@"
+elif command -v python2.7 > /dev/null && test -e /usr/lib/python2.7/dist-packages/django/bin/django-admin.py
 then
-    exec python2.7 /usr/lib/python2.7/dist-packages/django/bin/django-admin.py "$@"
-elif test -x /usr/bin/python2.6 && test -e /usr/lib/python2.6/dist-packages/django/bin/django-admin.py
+    exec python2.7 "$0" "$@"
+elif command -v python2.6 > /dev/null && test -e /usr/lib/python2.6/dist-packages/django/bin/django-admin.py
 then
-    exec python2.6 /usr/lib/python2.6/dist-packages/django/bin/django-admin.py "$@"
+    exec python2.6 "$0" "$@"
 else
     echo "Cannot find installed version of python-django or python3-django." >&2
     exit 1




More information about the Python-modules-commits mailing list