[Pkg] Installer: Installer-Core-AlexandreBergel.244.mcz

Matthew Fulmer tapplek at gmail.com
Thu Oct 23 16:19:40 UTC 2008


Hi alex. I don't understand the purpose of this change.
Installing a mc package already does some pretty sophisticated
pattern matching in the method InstallerMonticello>>mcThing,
allowing you to install the latest version, the latest version
from a particular author, or a specific version. Was there a bug
in that code? Were you unaware of it? I don't understand why
this is needed.

On Thu, Oct 23, 2008 at 05:53:06PM +0200, squeak-dev-noreply at lists.squeakfoundation.org wrote:
> A new version of Installer-Core was added to project Installer:
> http://www.squeaksource.com/Installer/Installer-Core-AlexandreBergel.244.mcz
> 
> ==================== Summary ====================
> 
> Name: Installer-Core-AlexandreBergel.244
> Author: AlexandreBergel
> Time: 23 October 2008, 5:53:02 pm
> UUID: 2080ff3e-6f59-4f15-91c2-ff07703cbccf
> Ancestors: Installer-Core-kph.243
> 
> added #installLatest: method to Installer
> 
> =============== Diff against Installer-Core-kph.243 ===============
> 
> Item was added:
> + ----- Method: Installer>>installLatest: (in category 'instanciation') -----
> + installLatest: packageNameCollectionOrDetectBlock
> + 	| versions | 
> + 	self addPackage: packageNameCollectionOrDetectBlock.
> + 	versions := (self availablePackages select: [:e | e beginsWith: packageNameCollectionOrDetectBlock]) asSortedCollection: [:a :b | 
> + 		           [(a findBetweenSubStrs: #($.)) allButLast last asInteger > (b findBetweenSubStrs: #($.)) allButLast last asInteger] 
> + 	                on: Error do: [:ex | false]].
> + 	versions isEmpty ifTrue: [^ self].
> + 	self packages removeLast.
> + 	self addPackage: versions first.
> + 
> +      ^ self install!
> 

-- 
Matthew Fulmer -- http://mtfulmer.wordpress.com/


More information about the Packages mailing list