summaryrefslogtreecommitdiff
path: root/extra/pkgfile/pkgfile.install
blob: 5545a3d390ac8a826aa5c0548e2444f55ac0a5ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

post_install() {
  printf "==> Run 'pkgfile --update' to initialize the database\n"
}

post_remove() {
  # the cache dir might not be removed, notify the user
  if [ -d var/cache/pkgfile ]; then
    printf "==> /var/cache/pkgfile has not been removed\n"
  fi
}

post_upgrade() {
  if [ "$(vercmp 5 "$2")" -eq 1 ]; then
    printf "==> DB format has changed. Please run pkgfile -uu\n"
  fi
}