From 451518b988710b22f2f9c3bc1f5d1a3c9ae9e295 Mon Sep 17 00:00:00 2001 From: Fulgurance Date: Thu, 28 Nov 2024 10:05:58 +0000 Subject: [PATCH] Added proper support for fully built crosstool chain --- ISM/CommandLine.cr | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ISM/CommandLine.cr b/ISM/CommandLine.cr index e853dbf0..1c1ce854 100644 --- a/ISM/CommandLine.cr +++ b/ISM/CommandLine.cr @@ -435,7 +435,7 @@ module ISM alreadyInstalled = installedOne.isValid - if !alreadyInstalled + if !alreadyInstalled && !software.passEnabled && !@systemInformation.crossToolchainFullyBuilt return false else @@ -445,13 +445,9 @@ module ISM #Case when requested software have an enabled pass if software.passEnabled - #Case when the cross toolchain is already fully built: no need to build any pass (EXPERIMENTAL) - if @systemInformation.crossToolchainFullyBuilt - return true - end - #If the installed one don't have enabled pass, that mean the software is already fully installed - if !installedOne.passEnabled + #Case when the cross toolchain is already fully built: no need to build any pass + if !installedOne.passEnabled || @systemInformation.crossToolchainFullyBuilt return true else #If not, we need to compare the pass numbers