Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mimemagic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
mimemagic
Commits
00fbbd4c
Unverified
Commit
00fbbd4c
authored
Mar 25, 2021
by
Jon Wood
Committed by
GitHub
Mar 25, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #109 from indiebrain/fix-mime-type-package-name-in-documentation
Fix mime type database package name in docs
parents
78b9da8d
59f46bb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ext/mimemagic/Rakefile
+5
-6
No files found.
ext/mimemagic/Rakefile
View file @
00fbbd4c
...
@@ -9,13 +9,13 @@ def locate_mime_database
...
@@ -9,13 +9,13 @@ def locate_mime_database
"/usr/share/mime/packages/freedesktop.org.xml"
"/usr/share/mime/packages/freedesktop.org.xml"
].
compact
].
compact
path
=
possible_paths
.
find
{
|
candidate
|
File
.
exist?
(
candidate
)
}
path
=
possible_paths
.
find
{
|
candidate
|
File
.
exist?
(
candidate
)
}
return
path
unless
path
.
nil?
return
path
unless
path
.
nil?
raise
(
<<~
ERROR
)
raise
(
<<~
ERROR
)
Could not find MIME type database in the following locations:
#{
possible_paths
}
Could not find MIME type database in the following locations:
#{
possible_paths
}
Ensure you have either installed the shared-mime-
types package for your distribution, or
Ensure you have either installed the shared-mime-
info package for your distribution, or
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
of that file.
of that file.
ERROR
ERROR
end
end
...
@@ -30,4 +30,4 @@ task :default do
...
@@ -30,4 +30,4 @@ task :default do
end
end
}
)
}
)
end
end
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment