diff options
author | root <root@rshg054.dnsready.net> | 2013-02-02 00:54:57 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-02-02 00:54:57 -0800 |
commit | 2f5224819ae83de6e9d8de008d5f2dc24769cb0d (patch) | |
tree | 2360fd091d34099cfbc4f747babe6280da5cb65c /extra/pkgfile/pkgfile.install | |
parent | edd3a17c9ed0cc3fa7fb62b4ad4178e064d46cda (diff) |
Sat Feb 2 00:54:57 PST 2013
Diffstat (limited to 'extra/pkgfile/pkgfile.install')
-rw-r--r-- | extra/pkgfile/pkgfile.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/pkgfile/pkgfile.install b/extra/pkgfile/pkgfile.install new file mode 100644 index 000000000..5545a3d39 --- /dev/null +++ b/extra/pkgfile/pkgfile.install @@ -0,0 +1,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 +} |