diff options
author | Michael Hanson <hansonorders@verizon.net> | 2011-08-04 19:46:05 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2011-08-04 19:46:05 (GMT) |
commit | d4fbf9a06beafc36c5862362113d8f3d169bb756 (patch) | |
tree | 3461f41b33a06b3da79f73860674e4aa8430af5f /abs/core/pacman/pacman.install | |
parent | 85fb50abe2018af71bbc65ded247e781f2ad75ff (diff) | |
parent | bb07edb449b1c718b49ec6fb98a7453cf8387b95 (diff) | |
download | linhes_pkgbuild-d4fbf9a06beafc36c5862362113d8f3d169bb756.zip linhes_pkgbuild-d4fbf9a06beafc36c5862362113d8f3d169bb756.tar.gz linhes_pkgbuild-d4fbf9a06beafc36c5862362113d8f3d169bb756.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/pacman/pacman.install')
-rw-r--r-- | abs/core/pacman/pacman.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/pacman/pacman.install b/abs/core/pacman/pacman.install index a3066bc..c066733 100644 --- a/abs/core/pacman/pacman.install +++ b/abs/core/pacman/pacman.install @@ -9,6 +9,7 @@ post_upgrade() { if [ "$(vercmp $2 3.5.0)" -lt 0 ]; then _warnupgrade fi + _updateconf echo ">>>" echo ">>> ATTENTION! ATTENTION! ATTENTION!" echo ">>> /etc/pacman.conf has changed. If you have customized your" @@ -18,6 +19,21 @@ post_upgrade() { echo ">>>" } +_updateconf() { + pacconf="/etc/pacman.conf" + #add SyncFirst + grep -q SyncFirst $pacconf + if [ $? -eq 1 ] + then + sed -i '/\[options\]/ a\SyncFirst = pacman ' $pacconf + fi + #remove larch + sed -i '/larch/d' $pacconf + +} + + + _warnupgrade() { echo ">>>" echo ">>> The pacman database format has changed as of pacman 3.5.0." |