diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 06:13:57 (GMT) |
commit | b172f79fadb565ecfbcec9508f9377d8618a4f4c (patch) | |
tree | bf8823b07e3313c3afa000a9b31e4f9a735cb818 /abs/core/pacman/pacman.install | |
parent | f9d54ab7c3853208484e304bc6cf40ab0f79d400 (diff) | |
parent | 5e7027c6194237ca1dc5fcbb3648483a970fb500 (diff) | |
download | linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.zip linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.gz linhes_pkgbuild-b172f79fadb565ecfbcec9508f9377d8618a4f4c.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core/pacman/pacman.install')
-rw-r--r-- | abs/core/pacman/pacman.install | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/abs/core/pacman/pacman.install b/abs/core/pacman/pacman.install index 46e4763..ed10f0d 100644 --- a/abs/core/pacman/pacman.install +++ b/abs/core/pacman/pacman.install @@ -1,10 +1,15 @@ +#!/bin/sh # 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 + if [ -f /usr/bin/vercmp ] + then + if [ "$(vercmp $2 3.0.2)" -lt 0 ] + then + _resetbackups + fi + fi } _resetbackups() { @@ -50,7 +55,3 @@ _resetbackups() { fi done } - -op=$1 -shift -$op $* |