Re: [Pharo-users] metacello question

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

Re: [Pharo-users] metacello question

Mariano Martinez Peck


On Wed, Jul 6, 2011 at 3:57 PM, Werner Kassens <[hidden email]> wrote:
Hi,
in a Configuration i have this baseline:
baseline10: spec
       <version: '1.0-baseline'>
       spec for: #'common' do: [
               spec blessing: #'baseline'.
               spec
                       project: 'Nile' with: [

                               spec
                                       className: 'ConfigurationOfNile';
                                       versionString: #bleedingEdge;
                                        loads: #('Core Tests' );
                                       repository:
'http://www.squeaksource.com/MetacelloRepository' ].
               spec repository: '/home/user/PharoFiles/package-cache'.
               spec
                       package: 'Pattern' with: [spec requires: 'Nile'];
                       package: 'Pattern-Tests' with: [spec requires: 'Pattern'.]  ].

in the method version10 i have this:
spec package: 'Pattern' with: 'Pattern-WernerKassens.14';




Hi. You scenario looks a little tricky.
Why did you use package-cache as the repository? is that what you really want?  I would try to use another local Monticello repository (directory) and it will probably work as you expect.

 
now i remove the package 'Pattern' and do a load with the configuration. no complaints by the configuration. but there is no  package 'Pattern' visible in the browser.

this is becasue (I guess) when you remove the package Pattern from the image, it is still present in package-cache, which is (by chance) the repository  that you specified, hence, it is found ;)

 
i open the monticello browser and there is a dirty package 'Pattern'. i open a browser on this package via the monticello browser and 'Pattern' is completely empty. but in the monticello browser the package shows the repository /home/user/PharoFiles/package-cache exactly as written in the baseline. i open that repository and of course can load 'Pattern' as expected .
where did i go wrong?

not sure. I cc'ed Metacello mailing list.

Cheers

--
Mariano
http://marianopeck.wordpress.com