From: Dana Jansens Date: Thu, 31 May 2007 03:20:00 +0000 (+0000) Subject: recommend the packages for shared mime types and desktop file cache, for gnome, possi... X-Git-Tag: release-2.0.2~133 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=d1bef1b4da7e2bc549c51330cc3dcb8f894f2e01;p=dana%2Fobconf.git recommend the packages for shared mime types and desktop file cache, for gnome, possibly rox too --- diff --git a/debian/control b/debian/control index 976c2fa..85db6c4 100644 --- a/debian/control +++ b/debian/control @@ -7,5 +7,5 @@ Standards-Version: 3.7.2 Package: obconf Architecture: i386 Depends: libc6, libgtk2.0-0, libglade2-0, openbox (>= 3.3.991), libstartup-notification0, tar, gzip -Recommends: obconf, ttf-bitstream-vera +Recommends: ttf-bitstream-vera, shared-mime-info, desktop-file-utils Description: Openbox configuration tool diff --git a/debian/postinst b/debian/postinst index 515ca8e..ab9de8e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -20,8 +20,10 @@ set -e case "$1" in configure) - update-mime-database /usr/share/mime - update-desktop-database /usr/share/applications + which update-mime-database>/dev/null && \ + update-mime-database /usr/share/mime + which update-desktop-database>/dev/null && \ + update-desktop-database /usr/share/applications ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/postrm b/debian/postrm index 95c861b..3ca4ccb 100644 --- a/debian/postrm +++ b/debian/postrm @@ -22,8 +22,10 @@ case "$1" in purge) ;; remove) - update-mime-database /usr/share/mime - update-desktop-database /usr/share/applications + which update-mime-database>/dev/null && \ + update-mime-database /usr/share/mime + which update-desktop-database>/dev/null && \ + update-desktop-database /usr/share/applications ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;;