python: add patches from archlinux for internal modules.
Add missing db dependency, bump revision. --HG-- extra : convert_revision : 6366bfde6a37f01d401fb393e98b47aae95ef878
This commit is contained in:
parent
7f9e6dfaa6
commit
1b55b53729
5 changed files with 197 additions and 1 deletions
23
templates/python/patches/python-2.6-readline.patch
Normal file
23
templates/python/patches/python-2.6-readline.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
--- Modules/readline.c 2008-11-04 12:43:31.000000000 -0800
|
||||
+++ Modules/readline.c 2009-04-22 15:50:49.000000000 -0700
|
||||
@@ -759,6 +759,10 @@
|
||||
static char **
|
||||
flex_complete(char *text, int start, int end)
|
||||
{
|
||||
+#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
||||
+ rl_completion_append_character ='\0';
|
||||
+ rl_completion_suppress_append = 0;
|
||||
+#endif
|
||||
Py_XDECREF(begidx);
|
||||
Py_XDECREF(endidx);
|
||||
begidx = PyInt_FromLong((long) start);
|
||||
@@ -799,11 +803,8 @@
|
||||
rl_completer_word_break_characters =
|
||||
strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
|
||||
/* All nonalphanums except '.' */
|
||||
-#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
||||
- rl_completion_append_character ='\0';
|
||||
-#endif
|
||||
|
||||
begidx = PyInt_FromLong(0L);
|
||||
endidx = PyInt_FromLong(0L);
|
Loading…
Add table
Add a link
Reference in a new issue