diff options
author | Britney Fransen <brfransen@gmail.com> | 2011-07-12 05:09:57 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2011-07-12 05:09:57 (GMT) |
commit | 88275f98d5fac50c978e4fbdc9f7d418aee638ce (patch) | |
tree | d04f17a227bf8f536fb79cd6d1d9692a348ffa89 /abs/core/pacman/pacman.install | |
parent | a70ac378c70ce2ad383c07eb41615df9536ff32d (diff) | |
download | linhes_pkgbuild-88275f98d5fac50c978e4fbdc9f7d418aee638ce.zip linhes_pkgbuild-88275f98d5fac50c978e4fbdc9f7d418aee638ce.tar.gz linhes_pkgbuild-88275f98d5fac50c978e4fbdc9f7d418aee638ce.tar.bz2 |
pacman: Bumped to latest
Diffstat (limited to 'abs/core/pacman/pacman.install')
-rw-r--r-- | abs/core/pacman/pacman.install | 29 |
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 -} +} |