I am trying to debug a package installation failure in eXist in which the compatibility failure is thrown by https://github.com/fgeorges/expath-pkg-java/blob/master/pkg-java/src/org/expath/pkg/repo/deps/DepSemverMinMax.java#L34. In this code there are 3 criteria for whether a given version satisfies a min and a max version:
return myMin.matchesMin(rhs) && myMax.matchesMax(rhs) && !myMax.matches(rhs);
If I have package that requires semver-min="4.1.0" and semver-max="4.5.0" for eXist, and I am trying to install this package in eXist 4.5.0, this code would work as follows, right?
The values of the variables would be:
myMin = 4.1.0
myMax = 4.5.0
rhs = 4.5.0
The three checks would need to return true for the dependency check to pass:
myMin.matchesMin(rhs) = true
myMax.matchesMax(rhs) = true
!myMax.matches(rhs) = false
Isn't this 3rd check totally extraneous and the cause of the checkProcessorVersion throwing a PackageException here?
I am trying to debug a package installation failure in eXist in which the compatibility failure is thrown by https://github.com/fgeorges/expath-pkg-java/blob/master/pkg-java/src/org/expath/pkg/repo/deps/DepSemverMinMax.java#L34. In this code there are 3 criteria for whether a given version satisfies a min and a max version:
If I have package that requires
semver-min="4.1.0"andsemver-max="4.5.0"for eXist, and I am trying to install this package in eXist 4.5.0, this code would work as follows, right?The values of the variables would be:
myMin= 4.1.0myMax= 4.5.0rhs= 4.5.0The three checks would need to return true for the dependency check to pass:
myMin.matchesMin(rhs)= truemyMax.matchesMax(rhs)= true!myMax.matches(rhs)= falseIsn't this 3rd check totally extraneous and the cause of the checkProcessorVersion throwing a PackageException here?