<div dir="ltr">Yes, exactly what I thought... Or do the same with Utilities uodateFromServer<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/25 Frank Shearar <span dir="ltr">&lt;<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How about I re-add Utilities &gt;&gt; #setSystemVersionFromConfig: like this:<br>
<br>
setSystemVersionFromConfig: aConfig<br>
    self deprecated: &#39;Use MCConfiguration &gt;&gt; #setSystemVersion&#39;.<br>
    aConfig setSystemVersion<br>
<br>
and then in a later step move this to 45Deprecated?<br>
<span class="HOEnZb"><font color="#888888"><br>
frank<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 25 November 2013 10:34, Frank Shearar &lt;<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>&gt; wrote:<br>
&gt; Ah crumbs. OK, so while System-fbs.623 re-adds the method, the<br>
&gt; existing method is still executing and so still fails. Hey, at least I<br>
&gt; broke the update stream in a _new_ way. I tried issuing a config to<br>
&gt; leap past this, but because the old version&#39;s executing, that doesn&#39;t<br>
&gt; help.<br>
&gt;<br>
&gt; Help!<br>
&gt;<br>
&gt; frank<br>
&gt;<br>
&gt; On 24 November 2013 21:24, Nicolas Cellier<br>
&gt; &lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:<br>
&gt;&gt; It seems that there is a load order problem, because I have a message not<br>
&gt;&gt; understood #setSystemVersionFromConfig: when updating... The old code below<br>
&gt;&gt; still invoke the Utilities (as well as TheWorldMenu and other senders...)<br>
&gt;&gt; TheWorldMainDockingBar&gt;&gt;updateSqueak<br>
&gt;&gt;     Utilities updateFromServer<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2013/11/23 &lt;<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; Frank Shearar uploaded a new version of System to project The Trunk:<br>
&gt;&gt;&gt; <a href="http://source.squeak.org/trunk/System-fbs.620.mcz" target="_blank">http://source.squeak.org/trunk/System-fbs.620.mcz</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ==================== Summary ====================<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Name: System-fbs.620<br>
&gt;&gt;&gt; Author: fbs<br>
&gt;&gt;&gt; Time: 23 November 2013, 9:13:28.936 pm<br>
&gt;&gt;&gt; UUID: a640a27d-9472-204b-8a5d-67c861e94eeb<br>
&gt;&gt;&gt; Ancestors: System-fbs.619<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; #setSystemVersionFromConfig: clearly belongs better with the parameter&#39;s<br>
&gt;&gt;&gt; class. #updateFromServer belongs (IMO at least) with the class involved with<br>
&gt;&gt;&gt; updating.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Keep the Utilities stubs, but deprecate them.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; =============== Diff against System-fbs.619 ===============<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Item was added:<br>
&gt;&gt;&gt; + ----- Method: MCConfiguration&gt;&gt;setSystemVersion (in category<br>
&gt;&gt;&gt; &#39;*System-Support-updating&#39;) -----<br>
&gt;&gt;&gt; + setSystemVersion<br>
&gt;&gt;&gt; +       &quot;Set the current system version date to the latest date found in<br>
&gt;&gt;&gt; my configuration (or the associated working copy). Also set the highest<br>
&gt;&gt;&gt; update number to the sum of version numbers in my configuration.&quot;<br>
&gt;&gt;&gt; +<br>
&gt;&gt;&gt; +       | versionNumbers versionDates |<br>
&gt;&gt;&gt; +       versionNumbers := self dependencies collect: [:d |<br>
&gt;&gt;&gt; +               (d versionInfo name copyAfterLast: $.) asInteger].<br>
&gt;&gt;&gt; +       versionDates := self dependencies collect: [:d |<br>
&gt;&gt;&gt; +               d versionInfo date<br>
&gt;&gt;&gt; +                       ifNil: [d package workingCopy ancestors first<br>
&gt;&gt;&gt; date]].<br>
&gt;&gt;&gt; +       SystemVersion current<br>
&gt;&gt;&gt; +               date: versionDates max;<br>
&gt;&gt;&gt; +               highestUpdate: versionNumbers sum.!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Item was added:<br>
&gt;&gt;&gt; + ----- Method: MCMcmUpdater class&gt;&gt;updateFromServer (in category<br>
&gt;&gt;&gt; &#39;*System-Support-updating&#39;) -----<br>
&gt;&gt;&gt; + updateFromServer<br>
&gt;&gt;&gt; +       &quot;Update the image by loading all pending updates from the server.&quot;<br>
&gt;&gt;&gt; +       | config |<br>
&gt;&gt;&gt; +       &quot;Flush all caches. If a previous download failed this is often<br>
&gt;&gt;&gt; helpful&quot;<br>
&gt;&gt;&gt; +       MCFileBasedRepository flushAllCaches.<br>
&gt;&gt;&gt; +       config := MCMcmUpdater updateFromDefaultRepository.<br>
&gt;&gt;&gt; +       config ifNil: [^self inform: &#39;Unable to retrieve updates from<br>
&gt;&gt;&gt; remote repository.&#39; translated].<br>
&gt;&gt;&gt; +       config setSystemVersion.<br>
&gt;&gt;&gt; +       self inform: (&#39;Update completed.<br>
&gt;&gt;&gt; + Current update number: &#39; translated, SystemVersion current<br>
&gt;&gt;&gt; highestUpdate).!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Item was removed:<br>
&gt;&gt;&gt; - ----- Method: Utilities class&gt;&gt;setSystemVersionFromConfig: (in category<br>
&gt;&gt;&gt; &#39;fetching updates&#39;) -----<br>
&gt;&gt;&gt; - setSystemVersionFromConfig: anMCConfiguration<br>
&gt;&gt;&gt; -       &quot;Set the current system version date to the latest date found in<br>
&gt;&gt;&gt; anMCConfiguration (or the associated working copy). Also set the highest<br>
&gt;&gt;&gt; update number to the sum of version numbers in the config.&quot;<br>
&gt;&gt;&gt; -<br>
&gt;&gt;&gt; -       | versionNumbers versionDates |<br>
&gt;&gt;&gt; -       versionNumbers := anMCConfiguration dependencies collect: [:d |<br>
&gt;&gt;&gt; -               (d versionInfo name copyAfterLast: $.) asInteger].<br>
&gt;&gt;&gt; -       versionDates := anMCConfiguration dependencies collect: [:d |<br>
&gt;&gt;&gt; -               d versionInfo date<br>
&gt;&gt;&gt; -                       ifNil: [d package workingCopy ancestors first<br>
&gt;&gt;&gt; date]].<br>
&gt;&gt;&gt; -       SystemVersion current<br>
&gt;&gt;&gt; -               date: versionDates max;<br>
&gt;&gt;&gt; -               highestUpdate: versionNumbers sum.<br>
&gt;&gt;&gt; - !<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Item was removed:<br>
&gt;&gt;&gt; - ----- Method: Utilities class&gt;&gt;updateFromServer (in category &#39;fetching<br>
&gt;&gt;&gt; updates&#39;) -----<br>
&gt;&gt;&gt; - updateFromServer<br>
&gt;&gt;&gt; -       &quot;Update the image by loading all pending updates from the server.&quot;<br>
&gt;&gt;&gt; -       | config |<br>
&gt;&gt;&gt; -       &quot;Flush all caches. If a previous download failed this is often<br>
&gt;&gt;&gt; helpful&quot;<br>
&gt;&gt;&gt; -       MCFileBasedRepository flushAllCaches.<br>
&gt;&gt;&gt; -       config := MCMcmUpdater updateFromDefaultRepository.<br>
&gt;&gt;&gt; -       config ifNil: [^self inform: &#39;Unable to retrieve updates from<br>
&gt;&gt;&gt; remote repository.&#39; translated].<br>
&gt;&gt;&gt; -       self setSystemVersionFromConfig: config.<br>
&gt;&gt;&gt; -       self inform: (&#39;Update completed.<br>
&gt;&gt;&gt; - Current update number: &#39; translated, SystemVersion current<br>
&gt;&gt;&gt; highestUpdate).!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
</div></div></blockquote></div><br></div>