<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dale,<br><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>thanks,<br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Dario,<br><br></div>The #currentVersion algorithm does a match between the packages loaded and the specifications and the match is based on "latest version matching" and this is an inexact science (as you've seen) ... Most likely in the case you are wondering about, the gemstone packges are identical between version 3.0.4 and 3.1.1 so the #currentVersion algorithm matches 3.1.1.<br><br></div>You've probably seen that these days I recommend using the scripting api where you would do <br></div>the load this way:</div></div></div></div></div></div></div></blockquote><br></div><div><blockquote type="cite"><div dir="ltr"><div><div><div><div><div>&nbsp; Metacello new<br></div>&nbsp;&nbsp;&nbsp; configuration: 'Pier3AddOns';<br></div>&nbsp;&nbsp;&nbsp; version: '3.0.4';<br></div>&nbsp;&nbsp;&nbsp; load.<br></div></div></div></blockquote><div><br></div><div><div>but in my Pharo 2.0 &nbsp;#20628<span class="Apple-tab-span" style="white-space:pre">        </span> image i don't have Metacello class!</div><div><br></div><div>I do:</div><div><span class="Apple-tab-span" style="white-space: pre; ">        Gofer new
                         squeaksource: 'MetacelloRepository';
                        package: 'ConfigurationOfMetacello';
                          load.

( ConfigurationOfMetacello project version: #stable) load</span></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div>But i don't found the relative class.</div><div><br></div><div><br></div><div>Ciao,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Dario</div></div><br><blockquote type="cite"><div dir="ltr"><div><div><br></div>then print the following to check which version has been loaded:<br>&nbsp;<br></div><div>&nbsp; Metacello image<br></div><div>&nbsp;&nbsp;&nbsp; configuration: 'Pier3AddOns;<br></div><div>&nbsp;&nbsp;&nbsp; list.<br><br></div><div>With the scripting API, #currentVersion is loaded. Instead Metacello records the version (project spec) of the project that was actually loaded and is much more accurate ...<br><br></div><div>You do have to use the the `Metacello new` style load expressions to cause projects to be registered ...<br><br>Dale<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 9:46 AM, <a href="mailto:dtrussardi@tiscali.it">dtrussardi@tiscali.it</a> <span dir="ltr">&lt;<a href="mailto:dtrussardi@tiscali.it" target="_blank">dtrussardi@tiscali.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Ciao,<div><br></div><div>First i load:</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>Gofer new</div><p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="white-space:pre-wrap">        </span></span>url: '<a href="http://www.squeaksource.com/MetacelloRepository'" target="_blank">http://www.squeaksource.com/MetacelloRepository'</a>;</p><p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;<span style="white-space:pre-wrap">        </span>&nbsp;</span>package: 'ConfigurationOfPier3AddOns';</p><p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="white-space:pre-wrap">        </span></span>load.</p><div><span style="white-space:pre-wrap">                </span></div><div>After i do :<span style="white-space:pre-wrap">        </span><br><span class=""><div><span><span style="white-space:pre-wrap">        </span>&nbsp;</span>(
ConfigurationOfPier3AddOns project version: '3.0.4') load.</div></span><p class="MsoNormal">now i don't understund because after :</p><p class="MsoNormal"><span style="white-space:pre-wrap">        </span>ConfigurationOfPier3AddOns project currentVersion.
<span style="white-space:pre-wrap">        </span></p><p class="MsoNormal"><span style="white-space:pre-wrap">        </span>answer&nbsp;<span style="white-space:pre-wrap">                </span>&lt;&gt;3.1.1 [ConfigurationOfPier3AddOns]</p><div><span style="white-space:pre-wrap">                </span>and not 3.0.4</div><div><br></div><div>Thanks,</div><div><br></div><div><span style="white-space:pre-wrap">        </span>Dario</div><p class="MsoNormal"><u></u>&nbsp;<u></u></p>

</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></body></html>