Comment #3 on issue 157 by
[hidden email]: means for adding
repository to package from MetacelloToolBox
http://code.google.com/p/metacello/issues/detail?id=157 From Issue 158, the method MetacelloTooBox
class>>modifyVersion:section:for:repository:requiredProjects:packages:dependencies:includes:files:repositories:preLoadDoIts:postLoadDoIts:supplyingAnswers:groups:
can also be used to add a repository.
In MetacelloTooBoxAPITestCase>>testComplexModifyBaseline, the following was
used to dd a package and dependency to version '1.1-baseline':
MetacelloToolBox
modifyVersion: '1.1-baseline'
section: #'common'
for: self configurationName asString
repository: nil
requiredProjects: #()
packages: #('GoferFoo')
dependencies: {('GeauxFaux' -> #('GoferFoo'))}
includes: #()
files: #()
repositories: #()
preLoadDoIts: #()
postLoadDoIts: #()
supplyingAnswers: #()
groups: #().
To add a repository for a particular package (say GoferFoo) you would do
the following:
MetacelloToolBox
modifyVersion: '1.1-baseline'
section: #'common'
for: self configurationName asString
repository: nil
requiredProjects: #()
packages: #(')
dependencies: #()
includes: #()
files: #()
repositories: {('GoferFoo' ->
#('
http://www.squeaksource.com/CommandShell'))}
preLoadDoIts: #()
postLoadDoIts: #()
supplyingAnswers: #()
groups: #().