[Pkg] Installer: Installer-Core-kph.297.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Mon Feb 23 01:27:39 UTC 2009


A new version of Installer-Core was added to project Installer:
http://www.squeaksource.com/Installer/Installer-Core-kph.297.mcz

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

Name: Installer-Core-kph.297
Author: kph
Time: 23 February 2009, 1:27:30 am
UUID: 237f2807-0149-11de-8efb-000a95edb42a
Ancestors: Installer-Core-kph.296

Raise a ProtocolClientError is the mantis bugs data returns "not found"

=============== Diff against Installer-Core-kph.296 ===============

Item was changed:
  ----- Method: InstallerMantis>>dataGetFrom: (in category 'public interface') -----
  dataGetFrom: aPath
  
  	| rs line first col row out |
  		
  	rs := HTTPSocket httpGet: ma, aPath.
+ 	
+ 	rs isString ifTrue: [ ^ ProtocolClientError signal: 'notFound' ].
  	
  	first := true.
  	
  	out := OrderedCollection new.
  	
  	[ rs atEnd ] whileFalse: [ 
  		
  		line := rs nextLine readStream.
  		col := 1.
  		row := Array new: 9.
  		[ (line atEnd or: [ col > 9 ]) ] whileFalse: [ row at: col put: (line upTo: $|). col := col + 1 ].	
  
  		rs next.
  		[ out add: (self class new in: self row: row) ] ifError: []
  		
  	 ].
  		
  	^ out
  "
  self reset.
  self getBugsList 
  "!



More information about the Packages mailing list