Commit a7cfdc2b authored by Philip Müller's avatar Philip Müller

[pkg-upd] 20180716: fix libutf8proc upgrade

parent 4934cb24
......@@ -41,6 +41,19 @@ detectDE()
}
post_upgrade() {
# Fix libutf8proc upgrading
pacman -Q libutf8proc &> /tmp/cmd1
if [ "$(grep 'libutf8proc' /tmp/cmd1 | cut -d' ' -f1)" == "libutf8proc" ]; then
if [ "$(vercmp $(grep 'libutf8proc' /tmp/cmd1 | cut -d' ' -f2) 2.1.1-3)" -le 0 ]; then
if [ -e "/usr/lib/libutf8proc.so.2" ]; then
msg "Fix libutf8proc upgrade ..."
rm -f /usr/lib/libutf8proc.so.2
rm /var/lib/pacman/db.lck &> /dev/null
pacman --noconfirm -S libutf8proc
fi
fi
fi
# nvidia legacy changes (may 2018)
pacman -Qq nvidia-utils &> /tmp/cmd1
pacman -Qq mhwd-nvidia-390xx &> /tmp/cmd2
......
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