ConfigurationOf Question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ConfigurationOf Question

Stéphane Ducasse
hi guys

what should be the load or loadDefault definition if I want to load the latest version as defined by a method of this style?

version02: spec

        <version: '0.2'>
        spec for: #common do: [ spec repository: 'http://www.squeaksource.com/Soup'.
        spec
                package: 'Soup-Core' with: 'Soup-Core-StephaneDucasse.8';
                package: 'Soup-Tests-Core' with: 'Soup-Tests-Core-StephaneDucasse.2';
                package: 'Soup-Help' with: 'Soup-Help-StephaneDucasse.2' ].


AM I correct to believe that

load
        "self load"

        ^self project latestVersion load

execute version02: if this is the last method version?

Stef
Reply | Threaded
Open this post in threaded view
|

Re: ConfigurationOf Question

Dale Henrichs
On 01/19/2011 01:24 PM, Stéphane Ducasse wrote:

> hi guys
>
> what should be the load or loadDefault definition if I want to load the latest version as defined by a method of this style?
>
> version02: spec
>
> <version: '0.2'>
> spec for: #common do: [ spec repository: 'http://www.squeaksource.com/Soup'.
> spec
> package: 'Soup-Core' with: 'Soup-Core-StephaneDucasse.8';
> package: 'Soup-Tests-Core' with: 'Soup-Tests-Core-StephaneDucasse.2';
> package: 'Soup-Help' with: 'Soup-Help-StephaneDucasse.2' ].
>
>
> AM I correct to believe that
>
> load
> "self load"
>
> ^self project latestVersion load
>
> execute version02: if this is the last method version?
>
> Stef

Stef,

Yes that is correct.

#latestVersion filters out versions with #baseline, #broken, or
#development blessings...

Dale



Reply | Threaded
Open this post in threaded view
|

Re: ConfigurationOf Question

Mariano Martinez Peck


Yes that is correct.

#latestVersion filters out versions with #baseline, #broken, or #development blessings...


If you want the really LAST version (regardless its blessing), you can use #lastVersion instead of #latestVersion

Mariano