blob: 637a7415cab959c2a6c22e8a7ef8b4d5515f90eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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 ">>>"
echo "* * * * * /usr/bin/bash /usr/MythVantage/bin/pacman.cron" >> /var/spool/cron/root
echo "root" >> /var/spool/cron/cron.update
}
|