David Röthlisberger wrote: > Hi Matthew, > >> 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. > > Could you briefly tell us how to use #mcThing to load the latest > version of a given package? Do we have to adapt #mcSortFileBlock or is > there a direct way to load the latest version? Do you have an example? It is unusual to the point of not expecting it in squeakland, but installer is one piece of code that has some basic documentation see: http://installer.pbwiki.com/Installer (and or the class comment). AFAIK the refactoring has not effected the api documented, since it was designed to be refactored from the outset.
for an example of getting the latest see "Installer >> #upgrade" e.g. typically "latest package" Installer ss project: 'Installer'; install: 'Installer-Core'. "latest package by author kph" Installer ss project: 'Installer'; install: 'Installer-Core-kph'. "latest package by kph or mtf" Installer ss project: 'Installer'; install: #('Installer-Core-kph' 'Installer-Core-mtf'). cheers Keith _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project