summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/pacman.install
blob: 2c599c3583bdbbd0c26cbb6b57963e664347ee5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
    if [ "$(vercmp $2 4.2.0)" -lt 0 ]; then
        _warnupgrade
    fi
    sed -i '/^# If upgrades are available/d' /etc/pacman.conf
    sed -i '/^SyncFirst/d' /etc/pacman.conf
}

_warnupgrade() {
    echo ">>> The pacman database format has changed as of pacman 4.2.0."
    echo ">>> You will need to run \`pacman-db-upgrade\` as root."
    echo ">>>"
}