[DRE-commits] [ruby-mime-types-data] 05/05: Use system installed data directory

Balasankar C balasankarc-guest at moszumanska.debian.org
Mon Dec 21 07:21:02 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-mime-types-data.

commit 346a97196d5bd86b55b6c1a19698983b5a9ce901
Author: Balasankar C <balasankarc at autistici.org>
Date:   Mon Dec 21 12:47:53 2015 +0530

    Use system installed data directory
---
 debian/patches/series                |  1 +
 debian/patches/use-system-path.patch | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7459348
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-system-path.patch
diff --git a/debian/patches/use-system-path.patch b/debian/patches/use-system-path.patch
new file mode 100644
index 0000000..cebfde9
--- /dev/null
+++ b/debian/patches/use-system-path.patch
@@ -0,0 +1,16 @@
+Description: Use system specific path for shared data
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-12-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/mime/types/data.rb
++++ b/lib/mime/types/data.rb
+@@ -13,7 +13,7 @@
+       # System maintainer note: this is the constant to change when packaging
+       # mime-types for your system. It is recommended that the path be
+       # something like /usr/share/ruby/mime-types/.
+-      PATH = File.expand_path('../../../../data', __FILE__)
++      PATH = File.expand_path('/usr/share/ruby-mime-types-data/data', __FILE__)
+     end
+   end
+ end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mime-types-data.git



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