Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002989 [Squeak] Monticello minor always 02-21-06 00:12 03-27-06 19:51
Reporter saidani View Status public  
Assigned To avi
Priority normal Resolution open  
Status assigned   Product Version
Summary 0002989: [BUG][FIX] When installing a mcz package through squeakmap, MCInstaller does not handle mcz dependencies
Description
To reproduce :
- create through squeaksource an mcz package A depending on B with Monticello (http://www.squeaksource.com/aPackage/a.1.mcz) [^]
- create a package with squeakmap and link it to http://www.squeaksource.com/aPackage/a.1.mcz [^]
- load this package : you will see an error : "MCinstaller blabla doesn't find the B dependent package"
Additional Information Workaround:
ClassIntoAInfo>>initialize

initialize
| monticello smallwikiRepository smallwikiStableRelease |

"install monticello latest release"
monticello := SMSqueakMap default packageWithName: 'Monticello'.
monticello lastPublishedRelease ifNotNil: [monticello lastPublishedRelease install]
                                                    ifNil: [monticello lastRelease install].

"install correct dependencies"
                                                                                                                                        packageRepository := MCHttpRepository location: 'http://www.squeaksource.com/aPackage' [^] user: 'squeak' password: 'squeak'.
                                                                                                                                        packageStableRelease := smallwikiRepository loadVersionFromFileNamed: 'a.1.mcz'.
                                                                                                                                        packageStableRelease allDependenciesDo: [ :dependency | dependency ]. "force resolving all depencies"
                                                                                                                                        packageStableRelease load.
Attached Files

- Relationships

- Notes
(0003931 - 884 - 1306 - 1430 - 1430 - 1430 - 1430)
saidani
02-21-06 00:16
edited on: 02-21-06 01:03

Oups... another try

ClassIntoAInfo>>initialize

initialize
| monticello packageRepository packageStableRelease |

"install monticello latest release"
monticello := SMSqueakMap default packageWithName: 'Monticello'.
monticello lastPublishedRelease ifNotNil: [monticello lastPublishedRelease install]
                                                    ifNil: [monticello lastRelease install].

"install correct dependencies"
packageRepository := MCHttpRepository location: 'http://www.squeaksource.com/aPackage' [^] [^] user: 'squeak' password: 'squeak'.

packageStableRelease := packageRepository loadVersionFromFileNamed: 'a.1.mcz'.
packageStableRelease allDependenciesDo: [ :dependency | dependency ]. "force resolving all depencies"
packageStableRelease load.

Reoups, this workaround does not work very well after removing sm directory... Too late, I give up ;-)

 

- Issue History
Date Modified Username Field Change
02-21-06 00:12 saidani New Issue
02-21-06 00:12 saidani Status new => assigned
02-21-06 00:12 saidani Assigned To  => avi
02-21-06 00:16 saidani Note Added: 0003931
02-21-06 01:03 saidani Note Edited: 0003931
03-27-06 19:51 KenCausey Project Squeak Packages => Squeak
06-03-07 20:45 asparagi Issue Monitored: asparagi


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
42 total queries executed.
32 unique queries executed.
Powered by Mantis Bugtracker