From 1e1ebaae38204deeb195b2090054e07f769511c2 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Mon, 26 Oct 2015 19:24:01 -0400 Subject: [PATCH] pentoo-updater: fix logic bug in script --- scripts/pentoo-updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index 8cc6f3f13..eea70cda6 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -53,7 +53,7 @@ if [ -n "${clst_target}" ]; then fi portageq list_preserved_libs / -if [ $? -ne 0 ]; then +if [ $? = 0 ]; then emerge @preserved-rebuild --buildpkg=y || safe_exit fi smart-live-rebuild 2>&1 || safe_exit @@ -62,7 +62,7 @@ emerge --deep --update --newuse -kb --changed-use --newrepo @world || safe_exit #we need to do the clean BEFORE we drop the extra flags otherwise all the packages we just built are removed emerge --depclean || safe_exit portageq list_preserved_libs / -if [ $? -ne 0 ]; then +if [ $? = 0 ]; then emerge @preserved-rebuild --buildpkg=y || safe_exit fi