Remove multilib dependency for pacman gui

This commit is contained in:
MatMoul 2018-07-22 22:35:32 +02:00
parent aec0d0aa22
commit 670fa3198d

View file

@ -15,23 +15,12 @@ for itm in $sel; do
case $itm in case $itm in
'"octopi"' | \ '"octopi"' | \
'"pamac-aur"') '"pamac-aur"')
multilib="true"
aurpkg="$aurpkg $(echo $itm | sed 's/"//g')" aurpkg="$aurpkg $(echo $itm | sed 's/"//g')"
;; ;;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";; *) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac esac
done done
if [ "$multilib" = "true" ]; then
if ( confirm "To install this or these packages, multilib repo is requires.\nFor this, the script edit the [mulilib] part in /etc/pacman.conf and run pacman -Syu\n\nEnable multilib repo ?" ) then
sed -i '/\[multilib\]/s/^#//g' /etc/pacman.conf
sed -i '/\[multilib\]/{n;s/^#//g}' /etc/pacman.conf
pacman -Syu
else
exit 1
fi
fi
instpkg "$pkg" "$aurpkg" instpkg "$pkg" "$aurpkg"
exit 0 exit 0