Metacello / metacello-wiki

Automatically exported from code.google.com/p/metacello
1 stars 0 forks source link

wrong mcz file can be loaded when mcz file has Monticello dependencies #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
see http://groups.google.com/group/metacello/browse_frm/thread/e6b7296b9e037d4c 
for problem description.

The attached file has a possible fix:

  Normally we record the name of the mcz file that are fetched and
  if we determine that we are being asked to fetch an mcz file that
  has already been fetched _and_ is newer than the one requested, we
  opt to use the newer version.

  When an mcz file has Monticello dependencies, there is a bug in the 
  code that caused us to forget that the mcz file had been seen, so that
  later fetches "overrode" the earlier fetch.

Original issue reported on code.google.com by henrichs...@gmail.com on 7 Jun 2010 at 8:05

Attachments:

GoogleCodeExporter commented 9 years ago
Once the bug is fixed the next issue appears: the spec for ConfigurationOfPharo 
version 1.1 is _looser_ than the spec for 1.1-beta2.11386, so 1.1 shows up as 
currentVersion ... 

currentVersion is defined as the #lastVersion that matches the current image 
content since 1.1. is looser, it appears to the be the #currentVersion

Original comment by henrichs...@gmail.com on 9 Jun 2010 at 7:03

GoogleCodeExporter commented 9 years ago
For this bug to appear, the dependent mcz version numbers (must be greater than 
the umbrella mcz file version number...

Original comment by henrichs...@gmail.com on 11 Jun 2010 at 5:27

GoogleCodeExporter commented 9 years ago
The load data cache is indexed by packageSpec name, but in the case of mcz 
files with dependencies, the packageSpec name for the umbrella mcz file was 
used for each of the dependent mcz files, which ends up shadowing the umbrella 
mcz file ... with the wrong versions of dependent mcz files, a newer version of 
the umbrella file will not be loaded.

Name: ConfigurationOfMetacello-DaleHenrichs.306
Author: DaleHenrichs
Time: 11 June 2010, 11:28:16 am
UUID: 861a095b-13a6-47b1-9860-b3dd30b33a59
Ancestors: ConfigurationOfMetacello-DaleHenrichs.305

Original comment by henrichs...@gmail.com on 11 Jun 2010 at 6:28

GoogleCodeExporter commented 9 years ago
bulk verify

Original comment by henrichs...@gmail.com on 18 Apr 2011 at 5:32