Hi Matthew,
I am now trying Installer-Core-mtf.250
Few comments below:
Installing a mc package already does some pretty sophisticated
pattern matching in the method InstallerMonticello>>mcThing,
What this mcThing is supposed to return? a few doits in a workspace
shows that it returns an MCVersionLoader.
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.
What should I do with this MCVersionLoader to load the latest version?
I tried:
-=-=--=-=--=-=--=-=-
(Installer ss
project: 'AST';
yourself)
mcThing load
-=-=--=-=--=-=--=-=-
But a debugger pops up
-=-=--=-=--=-=--=-=-
(Installer ss
project: 'AST';
yourself)
basicVersions
-=-=--=-=--=-=--=-=-
But a debugger pops up again
-=-=--=-=--=-=--=-=-
(Installer ss
project: 'AST';
yourself)
basicAvailablePackages
-=-=--=-=--=-=--=-=-
Give me a list of names that includes the repository name 'http://www.squeaksource.com/AST.html'
.
-=-=--=-=--=-=--=-=-
(Installer ss
project: 'AST';
yourself)
mcUrl
-=-=--=-=--=-=--=-=-
raises another error.
How should I use Installer to load the lastest version of a project,
let's say the latest AST*.mcz in the project 'AST'?
Cheers,
Alexandre
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