[squeak-dev] The Inbox: Installer-Core-ct.452.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Oct 15 18:24:19 UTC 2022

Christoph Thiede uploaded a new version of Installer-Core to project The Inbox:

==================== Summary ====================

Name: Installer-Core-ct.452
Author: ct
Time: 15 October 2022, 8:24:18.050533 pm
UUID: d845f390-c267-3c49-ac35-31f0d34b04a3
Ancestors: Installer-Core-ct.451

Fixes a bug in new #ensureRecentMetacello that polluted the current change set with the preamble the SAR file.

=============== Diff against Installer-Core-ct.451 ===============

Item was changed:
  ----- Method: Installer class>>ensureRecentMetacello (in category 'scripts') -----
  	"Copied and adapted from https://github.com/Metacello/metacello/blob/master/README.md"
  	| metacello |
  	((Smalltalk classNamed: #WebClient)
  		ifNil: [ false ]
  		ifNotNil: [ :webClient | 
  			[ (webClient httpHead: 'https://github.com') isSuccess ] 
  				on: Error
  				do: [ false ] ])
  		ifFalse: [ ^self inform: 'Could not connect to "https://github.com".\\You need an internet connection and SSL support\to install (or update) Metacello.\\Please fix those issues and try again.' translated withCRs ].
  	self isMetacelloInstalled ifFalse: [
  		| response |
  		"Download base archive of Metacello."
  		response := WebClient httpGet: 'https://files.squeak.org/metacello/metacello-squeak60.sar'.
  		response isSuccess ifFalse: [
  			self error: ('Could not download Metacello archive: {1}' translated format: {response status})].
  		"Prepare a clean environment and install it."
  		Smalltalk globals removeKey: #Metacello ifAbsent: ["Ignore prior attempts."].
+ 		self new installSAR: 'metacello-squeak60.sar' from: response content asByteArray readStream].
- 		SARInstaller new fileInFrom: response content asByteArray readStream].
  	metacello := Smalltalk classNamed: #Metacello.
  	"Now load latest version of Metacello"
  	metacello new
  		baseline: 'Metacello';
  		repository: 'github://Metacello/metacello:master/repository';
  		load: #('default' 'Metacello-Help').!

More information about the Squeak-dev mailing list