[squeak-dev] Re: DNU on processing update-ar101.mcm

Andreas Raab andreas.raab at gmx.de
Sat Jan 2 17:52:19 UTC 2010


Randal L. Schwartz wrote:
> Andreas> Generally, when something like this happens, it's a good idea to open an MC
> Andreas> browser do a "flush cached versions" and try again. Most times it'll just work.
> 
> So, some of the files on my hard drive should be removed before updating?
> If this is true, why isn't this done automatically?
> 
> As in "load code updates" should automatically do "flush cached versions" as a
> matter of policy, if it'll help naive people move forward.

Good point and trivial to do. Just change, i.e.,

Utilities class>>updateFromServer
	"Update the image by loading all pending updates from the server."
	| config |
	"Flush all caches for good measure before updating.
	If a previous download failed this is often helpful."
	MCFileBasedRepository flushAllCaches.
	config := MCMcmUpdater updateFromRepositories: #(
		'http://source.squeak.org/trunk'
	).
	self setSystemVersionFromConfig: config.
	self inform: 'Update completed.
Current update number: ', SystemVersion current highestUpdate.

Unfortunately, it appears source.squeak.org is down right now. I'm 
getting timeouts and proxy errors.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list