[DRE-commits] [ruby-mimemagic] 11/14: document in TODO a possible dpkg trigger to update tables.rb
Cédric Boutillier
boutil at moszumanska.debian.org
Fri Apr 24 14:04:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-mimemagic.
commit 21fe69bcd65ef5cfdc4d9b8e605a46b9c62a9886
Author: Cédric Boutillier <boutil at debian.org>
Date: Fri Apr 24 14:52:10 2015 +0200
document in TODO a possible dpkg trigger to update tables.rb
---
debian/TODO | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..e0c127e
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1,34 @@
+implement a dpkg trigger to update mimemagic/tables.rb
+from /usr/share/mime/packages/freedesktop.org.xml
+using the provided script/generate-mime.rb.
+
+This would use:
+ - a debian/triggers file with:
+ interest /usr/share/mime/packages/freedesktop.org.xml
+ - a debian/postint file with something like:
+ !/bin/sh
+ set -e
+
+ MIMEMAGIC_SHARE=/usr/share/ruby-mimemagic
+ MIMEMAGIC_LIB=/usr/lib/ruby/vendor_ruby/mimemagic
+ MIMEDB=/usr/share/mime/packages/freedesktop.org.xml
+
+ # generate automatically mimemagic/tables.rb from system MIME database
+ # shipped by the shared-mime-info package
+
+ if [ "$1" = "triggered" ]; then
+ if [ -x $MIMEMAGIC_SHARE/generate-mime.rb ]; then
+ $MIMEMAGIC_SHARE/generate-mime.rb $MIMEDB > $MIMEMAGIC_LIB/tables.rb
+ fi
+ exit 0
+ fi
+
+ #DEBHELPER#
+
+ - a way to update lib/mimemagic/tables.rb before running the tests.
+
+
+Unfortunately, for the moment, this script fails on the system
+freedesktop.org.xml file.
+
+ -- Cédric Boutillier <boutil at debian.org> Fri, 24 Apr 2015 14:48:50 +0200
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mimemagic.git
More information about the Pkg-ruby-extras-commits
mailing list