summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/pacman.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 17:49:21 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 17:49:21 (GMT)
commitf4744110e801e5fcbb1ee4af81882bc928982d03 (patch)
treefe0ff40d885099acba454ca27652c322bd0f4a4d /abs/core/pacman/pacman.install
parentc22764f957f0d2dd94b4f8e4ccac0ffe71f65e71 (diff)
downloadlinhes_pkgbuild-f4744110e801e5fcbb1ee4af81882bc928982d03.zip
linhes_pkgbuild-f4744110e801e5fcbb1ee4af81882bc928982d03.tar.gz
linhes_pkgbuild-f4744110e801e5fcbb1ee4af81882bc928982d03.tar.bz2
pacman 4.0.3
Diffstat (limited to 'abs/core/pacman/pacman.install')
-rw-r--r--abs/core/pacman/pacman.install31
1 files changed, 10 insertions, 21 deletions
diff --git a/abs/core/pacman/pacman.install b/abs/core/pacman/pacman.install
index c066733..487819a 100644
--- a/abs/core/pacman/pacman.install
+++ b/abs/core/pacman/pacman.install
@@ -9,33 +9,22 @@ 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"
- echo ">>> pacman.conf file, please merge your changes into"
- echo ">>> /etc/pacman.conf.pacnew. Backup your old pacman.conf and"
- echo ">>> then move pacman.conf.pacnew to pacman.conf"
- echo ">>>"
-}
-
-_updateconf() {
- pacconf="/etc/pacman.conf"
- #add SyncFirst
- grep -q SyncFirst $pacconf
- if [ $? -eq 1 ]
- then
- sed -i '/\[options\]/ a\SyncFirst = pacman ' $pacconf
+ if [ ! -f "etc/pacman.d/gnupg/pubring.gpg" ] || [ "$(vercmp $2 4.0.3-2)" -lt 0 ]; then
+ _check_pubring
fi
- #remove larch
- sed -i '/larch/d' $pacconf
+}
+post_install() {
+ _check_pubring
}
-
+_check_pubring() {
+ echo " >>> Run \`pacman-key --init; pacman-key --populate archlinux\`"
+ echo " >>> to import the data required by pacman for package verification."
+ echo " >>> See: https://www.archlinux.org/news/having-pacman-verify-packages"
+}
_warnupgrade() {
- echo ">>>"
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 ">>>"