home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / man-db.config < prev    next >
Encoding:
Text File  |  2007-04-05  |  1.4 KB  |  41 lines

  1. #! /bin/sh -e
  2.  
  3. . /usr/share/debconf/confmodule
  4. db_version 2.0
  5.  
  6. db_input medium man-db/install-setuid || true
  7.  
  8. catdir=/var/cache/man
  9.  
  10. if dpkg --compare-versions "$2" lt 2.3.16 || \
  11.    ([ ! -f $catdir/index.db ] && [ ! -f $catdir/index.bt ]); then
  12.     # All versions before 2.3.17.1-1 removed cat page hierarchies on
  13.     # upgrade. Since then a preinst hack means upgrades from 2.3.16 or later
  14.     # won't do this, but the hack is nasty enough that I don't want to
  15.     # extend it back beyond then. Thus, we may need to build the database
  16.     # from scratch on old upgrades. This also covers fresh installs.
  17.     db_input low man-db/build-database || true
  18. elif dpkg --compare-versions "$2" lt 2.4.2-1; then
  19.     # At 2.3.17.1-5, the database version number changed to 2.3.2.
  20.     # At 2.4.0-1, the database version number changed to 2.4.1 and we
  21.     # moved from libdb2 to libdb3.
  22.     # At 2.4.2-1, we moved from libdb3 to libgdbm3.
  23.     # Set the seen flag to false in case people answered this for the
  24.     # previous transition, but only if it hasn't been asked already in
  25.     # the current upgrade.
  26.     db_fget man-db/rebuild-database seen_in_2.4.2-1_upgrade
  27.     if [ "$RET" = false ]; then
  28.     db_fset man-db/rebuild-database seen false
  29.     fi
  30.     db_input medium man-db/rebuild-database || true
  31.     rebuilding=1
  32. fi
  33.  
  34. db_go
  35.  
  36. if [ "$rebuilding" = 1 ]; then
  37.     db_fset man-db/rebuild-database seen_in_2.4.2-1_upgrade true
  38. fi
  39.  
  40. exit 0
  41.