自分用にカスタマイズしたshared-mime-infoのソース
Revision | db396d03637fb46aa8df185fd442452ca42101e1 (tree) |
---|---|
Zeit | 2020-04-25 13:26:44 |
Autor | Emilio Pozuelo Monfort <pochu@debi...> |
Commiter | dyknon |
Don't hardcode the path in postinst
@@ -6,6 +6,7 @@ shared-mime-info (1.15-1) UNRELEASED; urgency=medium | ||
6 | 6 | * Remove ancient patches changing the magic database. Those should be |
7 | 7 | reported upstream if they're still present. |
8 | 8 | * Switch to debhelper-compat. |
9 | + * Don't hardcode full command path in postinst. | |
9 | 10 | |
10 | 11 | -- Emilio Pozuelo Monfort <pochu@debian.org> Tue, 24 Mar 2020 12:27:07 +0100 |
11 | 12 |
@@ -2,13 +2,13 @@ | ||
2 | 2 | set -e |
3 | 3 | |
4 | 4 | if [ "$1" = "triggered" ]; then |
5 | - if [ -x /usr/bin/update-mime-database ]; then | |
5 | + if which update-mime-database >/dev/null 2>&1; then | |
6 | 6 | update-mime-database /usr/share/mime |
7 | 7 | fi |
8 | 8 | exit 0 |
9 | 9 | fi |
10 | 10 | |
11 | -if [ -x /usr/bin/update-mime-database ]; then | |
11 | +if which update-mime-database >/dev/null 2>&1; then | |
12 | 12 | update-mime-database /usr/share/mime |
13 | 13 | fi |
14 | 14 |