Hi Matthew,

You're right. We were unaware of this.

Cheers,
Alexandre


On 23 Oct 2008, at 18:19, Matthew Fulmer wrote:

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, [EMAIL PROTECTED] 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/

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to