[Pkg] The Trunk: SMBase-cmm.125.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Feb 12 22:48:36 UTC 2011


Chris Muller uploaded a new version of SMBase to project The Trunk:
http://source.squeak.org/trunk/SMBase-cmm.125.mcz

==================== Summary ====================

Name: SMBase-cmm.125
Author: cmm
Time: 10 February 2011, 9:52:32.826 am
UUID: e3eb12c5-65b7-43aa-b6d9-c59c2081ed6d
Ancestors: SMBase-cmm.124

Added SMSqueakMap>>installPackageNamed:version: convenience method.

=============== Diff against SMBase-cmm.124 ===============

Item was added:
+ ----- Method: SMSqueakMap>>installPackageNamed:version: (in category 'public-installation') -----
+ installPackageNamed: aString version: version
+ 	"Install the release <version> of the package with a name
+ 	beginning with aString (see method comment
+ 	of #packageWithNameBeginning:). <version> is the
+ 	user-specified version name."
+ 	| package release |
+ 	package := self packageWithNameBeginning: aString.
+ 	package ifNil: [self error: 'No package found with name beginning with ', aString].
+ 	release := package releaseWithVersion: version.
+ 	release ifNil: [self error: 'No package release found with version ', version].
+ 	^self installPackageRelease: release!



More information about the Packages mailing list