• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

自分用にカスタマイズしたshared-mime-infoのソース


Commit MetaInfo

Revisiondb396d03637fb46aa8df185fd442452ca42101e1 (tree)
Zeit2020-04-25 13:26:44
AutorEmilio Pozuelo Monfort <pochu@debi...>
Commiterdyknon

Log Message

Don't hardcode the path in postinst

Ändern Zusammenfassung

Diff

--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ shared-mime-info (1.15-1) UNRELEASED; urgency=medium
66 * Remove ancient patches changing the magic database. Those should be
77 reported upstream if they're still present.
88 * Switch to debhelper-compat.
9+ * Don't hardcode full command path in postinst.
910
1011 -- Emilio Pozuelo Monfort <pochu@debian.org> Tue, 24 Mar 2020 12:27:07 +0100
1112
--- a/debian/postinst
+++ b/debian/postinst
@@ -2,13 +2,13 @@
22 set -e
33
44 if [ "$1" = "triggered" ]; then
5- if [ -x /usr/bin/update-mime-database ]; then
5+ if which update-mime-database >/dev/null 2>&1; then
66 update-mime-database /usr/share/mime
77 fi
88 exit 0
99 fi
1010
11-if [ -x /usr/bin/update-mime-database ]; then
11+if which update-mime-database >/dev/null 2>&1; then
1212 update-mime-database /usr/share/mime
1313 fi
1414