[squeak-dev] Monticello: loading multiple packages only mentions first package's name

Levente Uzonyi leves at elte.hu
Tue Dec 27 00:01:39 UTC 2011


On Mon, 26 Dec 2011, Frank Shearar wrote:

> I have a small Installer script called logic.st:
>
> Installer cache
>    install: 'AlgebraicDataType';
>    install: 'Unification';
>    install: 'Zippers'
>
> and I pass that in as the startup script when I start up my Squeak
> (whether a pre-4.3 or a 4.3 (yay!)), I see the usual progress bar. It
> says "Compiling AlgebraicDataType-fbs.nn" and then "Installing
> AlgebraicDataType-fbs.nn", as expected. And then it says the same
> thing again, talking about installing and compiling AlgebraicDataType
> instead of Unification, and then again when loading Zippers.
>
> The packages all load correctly: it's just the progress morph giving a
> misleading status message. Has anyone else seen this?

Yes, AlgebraicDataType will be installed three times, Unification twice. 
This is because #install: is implemented as #addPackage:, then #install. 
Since the Installer subinstance is kept between #install sends, therefore 
the installations will repeat. The solution is to use #addPackage: and 
#install directly:

Installer cache
 	addPackage: 'AlgebraicDataType';
 	addPackage: 'Unification';
 	addPackage: 'Zippers';
 	install

or using a collection:

Installer cache install: #('AlgebraicDataType' 'Unification' 'Zippers')


Levente

>
> frank
>
>



More information about the Squeak-dev mailing list