File: 54-debian-alternatives-for-external-tools.patch

package info (click to toggle)
postgresql-9.1 9.1.15-0%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 109,092 kB
  • sloc: ansic: 575,877; sql: 43,887; yacc: 26,399; perl: 6,352; lex: 6,171; sh: 5,282; makefile: 3,772; asm: 65; sed: 15; python: 12
file content (32 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Author: Martin Pitt <mpitt@debian.org>
Description: Use Debian alternatives for external tools instead of hardcoded programs
Forwarded: No, Debian specific

Index: postgresql-9.1-9.1~rc1/src/bin/psql/print.h
===================================================================
--- postgresql-9.1-9.1~rc1.orig/src/bin/psql/print.h	2011-08-18 23:23:13.000000000 +0200
+++ postgresql-9.1-9.1~rc1/src/bin/psql/print.h	2011-08-21 10:07:15.654681131 +0200
@@ -172,7 +172,7 @@
 extern const printTextFormat *get_line_style(const printTableOpt *opt);
 
 #ifndef __CYGWIN__
-#define DEFAULT_PAGER "more"
+#define DEFAULT_PAGER "/usr/bin/pager"
 #else
 #define DEFAULT_PAGER "less"
 #endif
Index: postgresql-9.1-9.1~rc1/src/bin/psql/settings.h
===================================================================
--- postgresql-9.1-9.1~rc1.orig/src/bin/psql/settings.h	2011-08-18 23:23:13.000000000 +0200
+++ postgresql-9.1-9.1~rc1/src/bin/psql/settings.h	2011-08-21 10:07:55.264681395 +0200
@@ -20,8 +20,8 @@
 #define DEFAULT_EDITOR	"notepad.exe"
 /* no DEFAULT_EDITOR_LINENUMBER_ARG for Notepad */
 #else
-#define DEFAULT_EDITOR	"vi"
-#define DEFAULT_EDITOR_LINENUMBER_ARG "+"
+#define DEFAULT_EDITOR	"sensible-editor"
+/*#define DEFAULT_EDITOR_LINENUMBER_ARG "+"*/
 #endif
 
 #define DEFAULT_PROMPT1 "%/%R%# "