[DRE-commits] [ruby-ghi] 05/06: patch: use default pager instead of hard-coded `less`.
Dmitry Smirnov
onlyjob at moszumanska.debian.org
Mon Apr 25 07:59:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
onlyjob pushed a commit to branch master
in repository ruby-ghi.
commit 64c658d
Author: Dmitry Smirnov <onlyjob at debian.org>
Date: Mon Apr 25 07:52:55 2016
patch: use default pager instead of hard-coded `less`.
---
debian/patches/pager.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/pager.patch b/debian/patches/pager.patch
new file mode 100644
index 0000000..19a91c0
--- /dev/null
+++ b/debian/patches/pager.patch
@@ -0,0 +1,18 @@
+Last-Update: 2016-04-25
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: use default `pager` through alternatives instead of `less`.
+
+--- a/lib/ghi/formatting.rb
++++ b/lib/ghi/formatting.rb
+@@ -47,9 +47,9 @@
+ def page header = nil, throttle = 0
+ if paginate?
+ pager = GHI.config('ghi.pager') || GHI.config('core.pager')
+ pager ||= ENV['PAGER']
+- pager ||= 'less'
++ pager ||= 'pager'
+ pager += ' -EKRX -b1' if pager =~ /^less( -[EKRX]+)?$/
+
+ if pager && !pager.empty? && pager != 'cat'
+ $stdout = IO.popen pager, 'w'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cb6ed03
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+pager.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ghi.git
More information about the Pkg-ruby-extras-commits
mailing list