fluxion/lib/installer/managers/pacman.sh

32 lines
836 B
Bash
Raw Normal View History

2018-08-03 12:56:15 -06:00
#!/usr/bin/env bash
if [ -f "/etc/arch-release" ]; then
#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"
PackageManagerOutputDevice="/dev/stdout"
unprep_package_manager() {
echo "Nothing to unprepare." >$PackageManagerOutputDevice
}
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() {
echo "Nothing to prepare." >$PackageManagerOutputDevice
}
fi
# FLUXSCRIPT END