[V3dot10] [Q] About updates

Milan Zimmermann milan.zimmermann at sympatico.ca
Thu Jan 25 03:19:57 UTC 2007


On 2007 January 23 05:36, Edgar J. De Cleene wrote:
> Guys:
>
> When I do SqueakLight, I cook my own update process looking at what the
> image have.
>
> Now I must follow  previous way (for you have a little fun look at
> http://wiki.squeak.org/squeak/5914)

That's really funny!

>
> I found
>
> Utiliites methods with no senders . How people use ?
>
> > broadcastUpdatesFrom: n1 to: n2 except: skipList
> > "
> >     Note:  This method takes its list of files from the directory named
> > 'updates',
> >     which will have been created and filled by, eg,
> >         Utilities readServerUpdatesSaveLocally: true updateImage: true.
> >     These can then be rebroadcast to any server using, eg,
> >         Utilities broadcastUpdatesFrom: 1 to: 9999 except: #(223 224).
> >     If the files are already on the server, and it is only a matter
> >     of copying them to the index for a different version, then use...
> >         (ServerDirectory serverInGroupNamed: 'SqC Internal Updates*')
> >             exportUpdatesExcept: #().
>
> And:
> > lastUpdateNum: updatesFileStrm
> >     "Look in the Updates file and see what the last sequence number is. 
> > Warn the user if the version it is under is not this image's version."
> >
> >     | verIndex seqIndex char ver seqNum |
> >
> >     verIndex _ seqIndex _ 0.     "last # starting a line and last digit
> > starting a line"
> >     seqNum _ 0.
> >     updatesFileStrm reset; ascii.
> >     [char _ updatesFileStrm next.
> >      updatesFileStrm atEnd] whileFalse: [
> >         char == Character cr ifTrue: [
> >             updatesFileStrm peek == $# ifTrue: [verIndex _
> > updatesFileStrm position +1.
> >                 seqIndex = 0 ifFalse: ["See if last num of old version if
> > biggest so far"
> >                     updatesFileStrm position: seqIndex.
> >                     ver _ SmallInteger readFrom: updatesFileStrm.
> >                     seqNum _ seqNum max: ver.
> >                     updatesFileStrm position: verIndex-1]].
> >             updatesFileStrm peek isDigit ifTrue: [seqIndex _
> > updatesFileStrm position]]].
> >
> >     seqIndex = 0 ifFalse: ["See if last num of old version if biggest so
> > far" updatesFileStrm position: seqIndex.
> >         ver _ SmallInteger readFrom: updatesFileStrm.
> >         seqNum _ seqNum max: ver.
> >         updatesFileStrm setToEnd].
> >     ^ seqNum
>
> __________________________________________________
> Preguntá. Respondé. Descubrí.
> Todo lo que querías saber, y lo que ni imaginabas,
> está en Yahoo! Respuestas (Beta).
> ¡Probalo ya!
> http://www.yahoo.com.ar/respuestas
>
> _______________________________________________
> V3dot10 mailing list
> V3dot10 at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/v3dot10


More information about the V3dot10 mailing list