[squeak-dev] The Trunk: SMBase-gk.108.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Apr 11 19:50:52 UTC 2010

Göran Krampe uploaded a new version of SMBase to project The Trunk:

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

Name: SMBase-gk.108
Author: gk
Time: 11 April 2010, 9:50:45.745 pm
UUID: 39daa594-f840-4076-bc33-fcc2fbfbde50
Ancestors: SMBase-gk.107

Yet another revert of ifNotNil: instead of ifNotNilDo:

=============== Diff against SMBase-gk.107 ===============

Item was changed:
  ----- Method: SMInstallationRegistry>>noteUninstalledPackageWithId:autoVersion:name: (in category 'installation') -----
  noteUninstalledPackageWithId: aPackageId autoVersion: aVersion name: aName
  	"The package release was just successfully uninstalled.
  	Can be used to inform SM of an uninstallation not been
  	done using SM, even when the map isn't loaded.
  	We record the fact in our Dictionary of installed packages
  	and log a 'do it' to mark this in the changelog.
  	The doit helps keeping track of the packages when
  	recovering changes etc - not a perfect solution but should help.
  	The map used is the default map.
  	The id of the package is the key and the value is an OrderedCollection
  	of Arrays with the release auto version, the point in time and the current installCounter."
  	| time name id v |
  	v := aVersion isString ifTrue: [aVersion asVersion] ifFalse: [aVersion].
  	aName ifNil: [name := '<unknown package name>'] ifNotNil: [name := aName].
  	id := UUID fromString: aPackageId.
  	time := Time totalSeconds.
  	self countInstall. "Used for both installs and uninstalls"
  	self clearInstalled: id version: v time: time counter: installCounter.
+ 	(((Smalltalk classNamed: 'SmalltalkImage') ifNotNilDo: [:si | si current]) ifNil: [Smalltalk])
- 	(((Smalltalk classNamed: 'SmalltalkImage') ifNotNil: [:si | si current]) ifNil: [Smalltalk])
  		logChange: '"Uninstalled ', name, ' auto version ', v versionString, '".
  (Smalltalk at: #SMSqueakMap ifAbsent: []) ifNotNil:[
  	SMSqueakMap noteUninstalledPackageWithId: ', id asString storeString, ' autoVersion: ', v storeString, ' atSeconds: ', time asString, ' number: ', installCounter asString, ']'!

More information about the Squeak-dev mailing list