Commit 9f1ae4e1 authored by Philip Müller's avatar Philip Müller

[pkg-upd] 8.0.3-4

- fix #1
parent 5998d537
......@@ -6,7 +6,7 @@ pkgbase=pamac
pkgname=('pamac-common' 'pamac-cli' 'pamac-gtk' 'pamac-tray-appindicator')
_pkgver=8.0.3
pkgver=8.0.3
pkgrel=2
pkgrel=4
_commit=8e4abfa2a723b51d364d475c36d0dac46217226f
pkgdesc="A Package Manager based on libalpm with AUR and Appstream support"
arch=('i686' 'x86_64')
......
......@@ -18,8 +18,8 @@ restore_conf() {
post_install() {
# enable systemd timers
ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants
ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants
# polkit agent
printf '==> An authentication agent is required\n'
printf ' Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
......@@ -35,10 +35,20 @@ post_upgrade() {
if [ "$(vercmp $2 7.3.5-3)" -lt 0 ]; then
restore_conf
fi
if [ "$(vercmp $2 8.0.3-4)" -lt 0 ]; then
# remove wrong placed symlinks
msg "Updating timer symlinks"
[[ -e /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
[[ -e /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
# enable systemd timers
ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants
ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants
fi
}
post_remove() {
# disable systemd timers
rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment