SOURCES: apport-pager.patch (NEW) - try $PAGER, less instead of de...
glen
glen at pld-linux.org
Thu Apr 24 12:06:37 CEST 2008
Author: glen Date: Thu Apr 24 10:06:37 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- try $PAGER, less instead of debianish sensible-pager
---- Files affected:
SOURCES:
apport-pager.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/apport-pager.patch
diff -u /dev/null SOURCES/apport-pager.patch:1.1
--- /dev/null Thu Apr 24 12:06:37 2008
+++ SOURCES/apport-pager.patch Thu Apr 24 12:06:32 2008
@@ -0,0 +1,15 @@
+--- apport-0.108/cli/apport-cli~ 2008-04-24 13:02:06.557911675 +0300
++++ apport-0.108/cli/apport-cli 2008-04-24 13:02:08.287912036 +0300
+@@ -232,7 +232,11 @@
+ return 'reduced'
+ if response == view:
+ try:
+- subprocess.Popen(["/usr/bin/sensible-pager"],
++ if os.environ.has_key('PAGER'):
++ pager = os.environ.get('PAGER')
++ else:
++ pager = '/usr/bin/less'
++ subprocess.Popen([pager],
+ stdin=subprocess.PIPE,
+ close_fds=True).communicate(details)
+ except IOError, e:
================================================================
More information about the pld-cvs-commit
mailing list