i used to do this
| myRepo myRepoDir |
myRepoDir := FileDirectory on:'/home/vonbecmann/repo'.
myRepo := MCDirectoryRepository new directory: myRepoDir.
MCRepositoryGroup default addRepository: myRepo.
in order to add my directory repository.
"Ken G. Brown's idea"
All in one go if you like:
MCRepositoryGroup default addRepository: (MCDirectoryRepository new directory: (FileDirectory on: '/myLocalMCRepositoryPath/MyPackage/')).
"Hernan Durand's idea"
| repositories |
repositories := MCRepositoryGroup default.
{
(MCHttpRepository location: '
http://www.squeaksource.com/Phantasia'
user: '' password: '').
(MCHttpRepository location: '
http://www.squeaksource.com/SmallFaces'
user: '' password: '').
}
do: [ : aRepository | repositories addRepository: aRepository ]
And if you read this article
https://pharoweekly.wordpress.com/2014/07/26/a-pharolauncher-lover/
in the script part there are some useful ways to set the username and password.
Regards