~ubuntu-branches/ubuntu/hardy/big-cursor/hardy

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2008-01-02 21:56:59 UTC
  • Revision ID: james.westby@ubuntu.com-20080102215659-15wrb8d0dl02i426
Tags: 3.7
* Current policy.
* Debhelper v5.
* Add hint about X resources to README.Debian.
* Only run font move code on upgrade, not new install.
* Depend on xfonts-base, so it can divert the cursor from there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
if [ "$1" = install ] || [ "$1" = upgrade ]; then
5
5
        # Deal with font move in upgrade.
6
 
        if dpkg --compare-versions "$2" lt 3.5; then
 
6
        if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 3.5; then
7
7
                dpkg-divert --package big-cursor --remove --rename --divert \
8
8
                        /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz-small \
9
9
                        /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz