Skip to content

Commit

Permalink
[MetaC]: Guard Fuel Preload
Browse files Browse the repository at this point in the history
Only remove fuel packages if it needs to be upgraded. Otherwise, Metacello might not reload it again after removal.
  • Loading branch information
seandenigris committed Aug 19, 2024
1 parent d82b18b commit 14e2081
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BaselineOfDynabook/BaselineOfDynabook.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ BaselineOfDynabook class >> dataFolder [
BaselineOfDynabook class >> fuelPreLoad [
"Needed for Fuel 5.1.0 to load cleanly (at least on GT)"

| fuelPackages |
| fuelPackages fuelVersion |

fuelVersion := FLVersion current.
(fuelVersion major >= 5 and: [ fuelVersion minor >= 2 and: [ fuelVersion patch >= 1 ] ]) ifTrue: [ ^ self ].

fuelPackages := RPackage organizer packages
select: [ :e | e name beginsWith: 'Fuel-' ].
fuelPackages do: #removeFromSystem
Expand Down

0 comments on commit 14e2081

Please sign in to comment.