~ubuntu-branches/ubuntu/wily/desktop-file-utils/wily

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette, Loic Minier, Josselin Mouette
  • Date: 2009-04-10 15:02:33 UTC
  • Revision ID: james.westby@ubuntu.com-20090410150233-m0w7zwafxrlf7ebr
Tags: 0.15-2
[ Loic Minier ]
* Depend on ${misc:Depends}.
* Do not hardcode the path to update-desktop-database in postinst.

[ Josselin Mouette ]
* Add myself to uploaders.
* postrm: remove created caches upon removal.
* triggers: register interest in /usr/share/applications.
* postinst: run update-desktop-database when triggered.
* Standards version is 3.8.1.
* Remove defaults.list stuff, it’s all in gnome-session now.
* copyright: refer to versioned GPL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
set -e
 
3
 
 
4
if [ "$1" = remove ]; then
 
5
  for dir in /usr/share/applications /usr/local/share/applications; do
 
6
    if [ -d $dir ]; then
 
7
      rm -f $dir/mimeinfo.cache
 
8
      rmdir --ignore-fail-on-non-empty $dir
 
9
    fi
 
10
  done
 
11
fi
 
12
 
 
13
#DEBHELPER#