File: findutils.postinst

package info (click to toggle)
findutils 4.2.28-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,460 kB
  • ctags: 2,635
  • sloc: ansic: 28,555; sh: 4,519; makefile: 616; exp: 419; sed: 16
file content (15 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
set -e

if [ "$1" = "configure" ]; then
  # up to 4.1.7-2 locatedb was in non-FHS-dir /var/lib/locate
  if dpkg --compare-versions "$2" le-nl "4.1.7-2" ; then
    if [ -f /var/lib/locate/locatedb ]; then
      mv /var/lib/locate/locatedb /var/cache/locate/
      rmdir /var/lib/locate 2>/dev/null || true
    fi
  fi
fi

#DEBHELPER#
# vim:tabstop=2:expandtab:shiftwidth=2