[bamf] 04/07: debian/bamfdaemon.postinst: Remove old bamf.index file from /usr/share/applications/.

Mike Gabriel sunweaver at debian.org
Tue Aug 25 00:34:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository bamf.

commit 1aef437f0120dff504b1e410a121fda2844aa5b7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 25 02:04:19 2015 +0200

    debian/bamfdaemon.postinst: Remove old bamf.index file from /usr/share/applications/.
---
 debian/bamfdaemon.postinst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/bamfdaemon.postinst b/debian/bamfdaemon.postinst
index 69f7d87..899a848 100644
--- a/debian/bamfdaemon.postinst
+++ b/debian/bamfdaemon.postinst
@@ -5,6 +5,10 @@ BAMF_INDEX_NAME="bamf-2.index"
 
 if [ "$1" = "configure" ] || [ "$1" = "triggered" ]; then
 	if [ -d /usr/share/applications ]; then
+		# remove deprecated index files
+		if [ -f /usr/share/applications/bamf.index ]; then
+			rm -f /usr/share/applications/bamf.index
+		fi
 		# rebuild index
 		I=/usr/share/applications/$BAMF_INDEX_NAME
 		echo "Rebuilding $I..."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/bamf.git



More information about the pkg-mate-commits mailing list