In particular, is it part of the "spec" or API? (That is, I'm not just 
asking about current implementation). 

I think this issue will become more relevant, especially for eclipse.org, 
now that p2 is getting "old" :)  because some repos that were on 
'downloads' should at some point move to 'archives'. 

Let me elaborate. In a composite repo, many of us might have child repos 
that might be similar to the following fictional URLs ... 

<children size='3'>
   <child location='http://archive.eclipse.org/webtools/R3.2.0/' />
   <child location='http://archive.eclipse.org/webtools/R3.2.1/' />
   <child location='http://download.eclipse.org/webtools/R3.2.2/' />
</children>

Is that order, above, treated differently than the order, below? Which 
repo is searched (or matched) first for artifacts? 

<children size='3'>
   <child location='http://download.eclipse.org/webtools/R3.2.2/' />
   <child location='http://archive.eclipse.org/webtools/R3.2.1/' />
   <child location='http://archive.eclipse.org/webtools/R3.2.0/' />
</children>

This can become important, for example, if some artifact is the same in 
all three repositories .... that is, the version/qualifier is unchanged. 
If the "archive" repos are tried first, then the result would not be 
mirrored, and always come from eclipse.org directly, it seems. The 
opposite would be desired, that 'downloads' repos would be 
"searched/matched" first, and if found there, then, via the magic of the 
mirrors URL, would have a chance of coming from a mirror, thus being 
faster for many users (and off-loading some bandwidth from eclipse.org). 

So, is there a way to make sure 'download' URLs are matched first? Should 
they come first in list, or last ... or is the outcome indeterminable? 

Any advice? 

Feel free to comment in bug 330134 ... which was opened some time ago to 
"investigate" this issue ... but, I'm hoping some p2 expert knows the 
answer, and I won't have to investigate :) 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=330134

 
Thanks, 


_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to