Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Reproducible version qualifier without Git-based timestamp

See BaselineValidator#validateAndReplace

It first checks if baseline has IU with the same id and fully qualified
version and then does detailed artifact comparison if such an UI is found.


On 2013-09-04 7:34 AM, Mickael Istria wrote:
I've been digging in Tycho code to understand where to plug this
comparison without qualifier, and I noticed those 2 lines:

     private IInstallableUnit
getBaselineUnit(IQueryable<IInstallableUnit> units, String id, Version
version) {
         IQueryResult<IInstallableUnit> result =
units.query(QueryUtil.createIUQuery(id, version), monitor);

So it seems to me that the BaselineServiceImp doesn't even call a
comparator to decide whether to use the other IU from the baseline. Just
having same id and version is enough. Am I right or did I miss something?
In the documentation, one can read "if baseline repositories contain
artifacts with the same id and version and equal contents". Where is
this "equal contents" checked?

Thanks in advance,
Mickael Istria
Eclipse developer at JBoss, by Red Hat <>
My blog <> - My Tweets

tycho-dev mailing list

Back to the top