File: aptitude.postinst

package info (click to toggle)
aptitude 0.8.13-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 40,332 kB
  • sloc: cpp: 95,275; xml: 31,928; sh: 5,160; makefile: 923; perl: 108; cs: 70; lisp: 55; sed: 16
file content (20 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# aptitude needs the apt xapian index stuff now, so make sure it at
# least exists.

set -e

mandir=/usr/share/man

if [ "$1" = "configure" ]
then
  slaves="--slave $mandir/man8/aptitude.8.gz aptitude.8.gz $mandir/man8/aptitude-curses.8.gz"
  for lang in cs de es fi fr gl it ja pl ; do
    slaves="$slaves --slave $mandir/$lang/man8/aptitude.8.gz aptitude.$lang.8.gz $mandir/$lang/man8/aptitude-curses.8.gz"
  done
  update-alternatives \
    --install /usr/bin/aptitude aptitude /usr/bin/aptitude-curses 30 $slaves
fi

#DEBHELPER#