File: use-system-path.patch

package info (click to toggle)
ruby-mime-types-data 3.2025.0924-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,324 kB
  • sloc: ruby: 9; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Use system specific path for shared data
Author: Balasankar C <balasankarc@autistici.org>
Last-Update: 2022-11-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/mime/types/data.rb
+++ b/lib/mime/types/data.rb
@@ -15,7 +15,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