summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/pacman.install
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-17 20:49:01 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-17 20:49:01 (GMT)
commit4e8509368ee8a5b76c4fd5cc1737dfc0f5fed607 (patch)
tree665570088d4fe2c675834c2409efafb80fe1a4e8 /abs/core/pacman/pacman.install
parent13e7dfcaf9aa5d46abd43fc0bfcc8c2167e99645 (diff)
parentf1e8cbd3510cef06cad3ea55eaedf40aca12f1ae (diff)
downloadlinhes_pkgbuild-4e8509368ee8a5b76c4fd5cc1737dfc0f5fed607.zip
linhes_pkgbuild-4e8509368ee8a5b76c4fd5cc1737dfc0f5fed607.tar.gz
linhes_pkgbuild-4e8509368ee8a5b76c4fd5cc1737dfc0f5fed607.tar.bz2
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/pacman/pacman.install')
-rw-r--r--abs/core/pacman/pacman.install29
1 files changed, 19 insertions, 10 deletions
diff --git a/abs/core/pacman/pacman.install b/abs/core/pacman/pacman.install
index 294222e..b735399 100644
--- a/abs/core/pacman/pacman.install
+++ b/abs/core/pacman/pacman.install
@@ -2,19 +2,28 @@
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
- # one time stuff for md5sum issue with older pacman versions
- if [ "$(vercmp $2 3.0.2)" -lt 0 ]; then
- _resetbackups
- fi
+ # one time stuff for md5sum issue with older pacman versions
+ if [ "$(vercmp $2 3.0.2)" -lt 0 ]; then
+ _resetbackups
+ fi
+ if [ "$(vercmp $2 3.5.0)" -lt 0 ]; then
+ _warnupgrade
+ fi
+}
+
+_warnupgrade() {
+ echo ">>> The pacman database format has changed as of pacman 3.5.0."
+ echo ">>> You will need to run \`pacman-db-upgrade\` as root."
+ echo ">>>"
}
_resetbackups() {
- echo ">>> Performing one-time reset of NoUpgrade md5sums. After this reset"
- echo ">>> you are able to remove all NoUpgrade lines of already protected"
- echo ">>> files from pacman.conf."
- echo ">>>"
+ echo ">>> Performing one-time reset of NoUpgrade md5sums. After this reset"
+ echo ">>> you are able to remove all NoUpgrade lines of already protected"
+ echo ">>> files from pacman.conf."
+ echo ">>>"
- # path variables
+ # path variables
pacconf="/etc/pacman.conf"
dbpath="/var/lib/pacman/local"
@@ -50,4 +59,4 @@ _resetbackups() {
echo ">>> -> $file is unowned."
fi
done
-}
+}