Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/django/files: django-1.7.5-bashcomp.patch
Date: Sat, 28 Feb 2015 12:59:33
Message-Id: 20150228125928.D749A12BC5@oystercatcher.gentoo.org
1 jlec 15/02/28 12:59:28
2
3 Added: django-1.7.5-bashcomp.patch
4 Log:
5 Version Bump; fix bashcompletions, #526272
6
7 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
8
9 Revision Changes Path
10 1.1 dev-python/django/files/django-1.7.5-bashcomp.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/files/django-1.7.5-bashcomp.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django/files/django-1.7.5-bashcomp.patch?rev=1.1&content-type=text/plain
14
15 Index: django-1.7.5-bashcomp.patch
16 ===================================================================
17 extras/django_bash_completion | 16 +---------------
18 1 file changed, 1 insertion(+), 15 deletions(-)
19
20 diff --git a/extras/django_bash_completion b/extras/django_bash_completion
21 index 3e02d8e..5a33938 100755
22 --- a/extras/django_bash_completion
23 +++ b/extras/django_bash_completion
24 @@ -37,7 +37,7 @@ _django_completion()
25 COMP_CWORD=$COMP_CWORD \
26 DJANGO_AUTO_COMPLETE=1 $1 ) )
27 }
28 -complete -F _django_completion -o default django-admin.py manage.py django-admin
29 +complete -F _django_completion -o default django-admin.py django-admin
30
31 _python_django_completion()
32 {
33 @@ -55,17 +55,3 @@ _python_django_completion()
34 fi
35 fi
36 }
37 -
38 -# Support for multiple interpreters.
39 -unset pythons
40 -if command -v whereis &>/dev/null; then
41 - python_interpreters=$(whereis python | cut -d " " -f 2-)
42 - for python in $python_interpreters; do
43 - pythons="${pythons} ${python##*/}"
44 - done
45 - pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ")
46 -else
47 - pythons=python
48 -fi
49 -
50 -complete -F _python_django_completion -o default $pythons