Monticello and Squeaksource+Seaside = Load silently the last
version of a package ?
Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Thu Nov 29 09:02:55 UTC 2007
El 11/29/07 5:26 AM, "Frederic Pluquet" <fpluquet at ulb.ac.be> escribió:
> Hello,
>
> Somebody knows how to load the last version of a package from Squeaksource
> without using the UI of Monticello, but executing only some lines of Smalltalk
> code ?
>
> The code must do something like (giving a package name) :
> - Check if a newer version exists on Squeaksource
> - In this case, load the last version of package in the current image
>
> The idea is to load the last version of a seaside application (from
> Squeaksource) without stopping the server (clicking a button in my seaside
> application).
>
>
> Fréd
>
> --
> Frédéric Pluquet
> Université Libre de Bruxelles (ULB)
> Assistant
In 3.10 we use this
| repository versionName lastVersion |
repository := MCHttpRepository
location: 'http://www.squeaksource.com/universes'
user: ''
password: ''.
versionName := repository readableFileNames first.
lastVersion := repository versionFromFileNamed: versionName.
lastVersion workingCopy repositoryGroup addRepository: repository.
lastVersion load
You need replace the last of path "universes" with your package name.
Edgar
More information about the Squeak-dev
mailing list
|