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.

--
Regards,
Igor

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 <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>


_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev



Back to the top