Skip to content

Commit

Permalink
Added proper support for fully built crosstool chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Nov 28, 2024
1 parent 15e36cf commit 451518b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ISM/CommandLine.cr
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ module ISM

alreadyInstalled = installedOne.isValid

if !alreadyInstalled
if !alreadyInstalled && !software.passEnabled && !@systemInformation.crossToolchainFullyBuilt
return false
else

Expand All @@ -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
Expand Down

0 comments on commit 451518b

Please sign in to comment.