[squeak-dev] "welcome" projects for 4.2

Edgar J. De Cleene edgardec2005 at gmail.com
Mon Dec 13 19:27:49 UTC 2010




On 12/13/10 12:00 AM, "Jecel Assumpcao Jr." <jecel at merlintec.com> wrote:

> It is even a little worse than you think - if you close without saving,
> the extra code will be gone from your image but will still be present in
> the .changes file. If you play with it some more the next day and again
> quit without saving, then it will be there twice. Or am I wrong about
> the interaction between loading packages and .changes?


For this I use the attached for a while, sure could be enhanced and people
use for not having unneeded info in the .image and .changes files

Edgar

-------------- next part --------------
'From Squeak3.11alpha of 13 February 2010 [latest update: #9806] on 6 December 2010 at 8:32:33 am'!

!Utilities class methodsFor: 'fetching updates' stamp: 'edc 12/6/2010 08:32'!
updateFromServer
	"Update the image by loading all pending updates from the server."
	| config answer |
	MCPackageLoader setHighestUpdate: true.
	"Flush all caches. If a previous download failed this is often helpful"
	MCFileBasedRepository flushAllCaches.
	MCMcmUpdater updateMissingPackages: false.
	config := MCMcmUpdater updateFromDefaultRepository.
	config ifNil: [^self inform: 'Unable to retrieve updates from remote repository.' translated].
	"self setSystemVersionFromConfig: config."
	self inform: ('Update completed.
Current update number: ' translated, SystemVersion current highestUpdate).
answer := self confirm: 'You wish cleanup the image ?'.
answer ifTrue:[
self updateFromServerCleanup]! !


More information about the Squeak-dev mailing list