File: TODO

package info (click to toggle)
ruby-mimemagic 0.3.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 352 kB
  • sloc: ruby: 2,440; makefile: 4
file content (34 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@debian.org>  Fri, 24 Apr 2015 14:48:50 +0200