fluxion/lib/installer/managers/pacman.sh

34 lines
888 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [ -f "/etc/arch-release" ]; then
2017-12-31 09:02:12 -07:00
#Last entry is the default package manager to use (pacman)
AurHelpers="pacaur yaourt pacman"
for AurHelper in $AurHelpers; do
if [ "$(pacman -Qs $AurHelper)" ]; then
PackageManagerCLT=$AurHelper
break
fi
done
PackageManagerCLT='pacman'
PackageManagerCLTInstallOptions="-S --noconfirm"
PackageManagerCLTRemoveOptions="-Rs"
2017-12-31 09:02:12 -07:00
PackageManagerOutputDevice="/dev/stdout"
2017-12-31 09:02:12 -07:00
PackageManagerLog="/tmp/lib_package_manager.log"
unprep_package_manager() {
2017-12-31 09:02:12 -07:00
echo "Nothing to unprepare." >$PackageManagerOutputDevice
}
2018-05-29 16:38:10 -06:00
check_package_manager() {
if [ -f "/var/lib/pacman/db.lck" ];then echo -e "[\033[31m!\033[0m] Pacman is locked, can't install dependencies. Exit."; exit 4; fi
}
prep_package_manager() {
2017-12-31 09:02:12 -07:00
echo "Nothing to prepare." >$PackageManagerOutputDevice
}
fi
# FLUXSCRIPT END