~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to debian/patches/900_ri_pager.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2009-07-30 19:06:31 UTC
  • Revision ID: james.westby@ubuntu.com-20090730190631-3x30w2mtev71ah62
Tags: 1.9.1.243-0ubuntu1
* Upload snapshot from Debian's pkg-ruby SVN repository to karmic.
  SVN revision: 235.
  Likely to be similar to the final package uploaded to Debian.
  Known issues:
  + lintian warnings/errors (nothing important)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 900_ri_pager.dpatch by akira yamada <akira@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: try 'pager' before 'less'.
 
6
## DP: See http://redmine.ruby-lang.org/issues/show/1171
 
7
 
 
8
@DPATCH@
 
9
diff -urNad ruby1.9-1.9.0.1~/lib/rdoc/ri/display.rb ruby1.9-1.9.0.1/lib/rdoc/ri/display.rb
 
10
--- ruby1.9-1.9.0.1~/lib/rdoc/ri/display.rb     2008-01-31 15:48:35.000000000 +0900
 
11
+++ ruby1.9-1.9.0.1/lib/rdoc/ri/display.rb      2008-03-06 11:35:27.000000000 +0900
 
12
@@ -192,7 +192,7 @@
 
13
 
 
14
   def setup_pager
 
15
     unless @use_stdout then
 
16
-      for pager in [ ENV['PAGER'], "less", "more", 'pager' ].compact.uniq
 
17
+      for pager in [ ENV['PAGER'], "pager", "less", "more" ].compact.uniq
 
18
         return IO.popen(pager, "w") rescue nil
 
19
       end
 
20
       @use_stdout = true