The Inbox: SMLoader-cmm.77.mcz

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

The Inbox: SMLoader-cmm.77.mcz

commits-2
A new version of SMLoader was added to project The Inbox:
http://source.squeak.org/inbox/SMLoader-cmm.77.mcz

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

Name: SMLoader-cmm.77
Author: cmm
Time: 15 December 2011, 1:51:40.56 pm
UUID: 6ef92be0-2c18-4b85-84db-9832af388430
Ancestors: SMLoader-cmm.76

Force local cache refresh when saving a new package release.

=============== Diff against SMLoader-cmm.76 ===============

Item was changed:
  ----- Method: SMReleaseBrowser>>savePackageRelease: (in category 'private') -----
  savePackageRelease: downloadUrlString
  "We actually save the package-release to the users who is posting it, even if that is different than the owner."
- | response |
  "Set sha1sum so it will be 'correct' until the next update from the SM server."
+ | response |
  release
  downloadUrl: downloadUrlString ;
  sha1sum: nil.
  response := smClient save: release.
  (response isSuccess not or:
  [ #('error' 'failed' ) anySatisfy:
  [ : each | response content
  includesSubstring: each
+ caseSensitive: false ] ]) ifTrue: [ self error: 'failed' ].
+ release
+ removeFromLocalCache ;
+ addToLocalCache!
- caseSensitive: false ] ]) ifTrue: [ self error: 'failed' ]!