From 493f1c8c9bb81a3e318d572faf1047a2791ca265 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 10 Dec 2019 16:05:54 -0500 Subject: [PATCH] pentoo-updater: protect call to eselect python update --- scripts/pentoo-updater.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index fe3de100d..d011bba06 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -259,7 +259,9 @@ if [ -n "${clst_target}" ]; then #we are in catalyst mkdir -p /var/log/portage/emerge-info/ emerge --info > /var/log/portage/emerge-info/emerge-info-$(date "+%Y%m%d").txt else #we are on a user system - #eselect python update + if [[ -z "$(eselect python show)" || ! -f "/usr/bin/$(eselect python show)" ]]; then + eselect python update + fi eselect python cleanup [ "${NO_SYNC}" = "true" ] || do_sync check_profile