[DRE-commits] [ruby-kramdown-rfc2629] 06/06: Update fix-path.patch to deal with other data files

Cédric Boutillier boutil at moszumanska.debian.org
Sat Jul 2 21:01:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-kramdown-rfc2629.

commit 9ac525c9b3726fd27d5b41e126146f1be4f4c2ee
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Jul 2 22:54:57 2016 +0200

    Update fix-path.patch to deal with other data files
---
 debian/changelog              |  1 +
 debian/patches/fix-path.patch | 17 +++++++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 30269c6..f911557 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ ruby-kramdown-rfc2629 (1.0.31-1) unstable; urgency=medium
     + depend on ruby-kramdown >= 1.11 (Closes: #829194)
   * Refresh no-gem-command.patch
   * Bump Standards-Version to 3.9.8 (no changes)
+  * Update fix-path.patch to deal with other data files
 
  -- Cédric Boutillier <boutil at debian.org>  Sat, 02 Jul 2016 22:47:04 +0200
 
diff --git a/debian/patches/fix-path.patch b/debian/patches/fix-path.patch
index a2faade..3315fbb 100644
--- a/debian/patches/fix-path.patch
+++ b/debian/patches/fix-path.patch
@@ -1,13 +1,13 @@
-Description: fix patch for kramdown-rfc2629.erb
- as it is installed under /usr/share/ruby-kramdown-rfc2629
+Description: fix patch for data files
+ as they are installed under /usr/share/ruby-kramdown-rfc2629
 Origin: vendor
 Author: Cédric Boutillier <boutil at debian.org>
 Forwarded: not-needed
-Last-Update: 2016-03-16
+Last-Update: 2016-07-02
 
 --- a/bin/kramdown-rfc2629
 +++ b/bin/kramdown-rfc2629
-@@ -162,7 +162,7 @@
+@@ -163,7 +163,7 @@
      end
    end
  
@@ -16,3 +16,12 @@ Last-Update: 2016-03-16
    erbfile = File.read(erbfilename, coding: "UTF-8")
    erb = ERB.new(erbfile, nil, '-')
    # remove redundant nomarkdown pop outs/pop ins as they confuse kramdown
+@@ -279,7 +279,7 @@
+ end
+ 
+ def read_encodings
+-  encfilename = File.expand_path '../../data/encoding-fallbacks.txt', __FILE__
++  encfilename = File.expand_path '/usr/share/ruby-kramdown-rfc2629/encoding-fallbacks.txt', __FILE__
+   encfile = File.read(encfilename, coding: "UTF-8")
+   Hash[encfile.lines.map{|l| 
+          l.chomp!;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-kramdown-rfc2629.git



More information about the Pkg-ruby-extras-commits mailing list