[Pkg] The Trunk: UpdateStream-ul.10.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Apr 24 13:21:56 UTC 2017

Levente Uzonyi uploaded a new version of UpdateStream to project The Trunk:

==================== Summary ====================

Name: UpdateStream-ul.10
Author: ul
Time: 24 April 2017, 1:17:07.109447 pm
UUID: a7ad436f-7226-4d9b-98b2-e2541a7aa84e
Ancestors: UpdateStream-ul.9

- rewrote senders of #clone to use #shallowCopy

=============== Diff against UpdateStream-ul.9 ===============

Item was changed:
  ----- Method: UpdateStreamDownloader class>>serverUrls (in category 'server urls') -----
  	"Return the current list of server URLs.  For code updates.  Format of UpdateUrlLists is 
  #( ('squeak updates' ('url1' 'url2'))
      ('some other updates' ('url3' 'url4')))"
  	| list |
  	list := UpdateUrlLists first last.
  	"If there is a dead server, return a copy with that server last" 
  	Socket deadServer ifNotNil: [
+ 		list shallowCopy withIndexDo: [:aName :ind |
- 		list clone withIndexDo: [:aName :ind |
  		(aName beginsWith: Socket deadServer) ifTrue: [
  			list := list asOrderedCollection.	"and it's a copy"
  			list removeAt: ind.
  			list addLast: aName]]
  	^ list asArray!

More information about the Packages mailing list