lib: Fix OSTREE_CHECK_VERSION()

Actually trying to use this in rpm-ostree, it kept returning successfully when I
didn't expect it to... The first conditional was always succeeding even when I
was asking for a newer minor.

Closes: #766
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-03-28 15:23:14 -04:00 committed by Atomic Bot
parent 97961ed2ce
commit b51ce8cb0a

View File

@ -78,5 +78,5 @@
* of ostree is equal or greater than the required one.
*/
#define OSTREE_CHECK_VERSION(year,release) \
(OSTREE_YEAR_VERSION >= (year) || \
(OSTREE_YEAR_VERSION > (year) || \
(OSTREE_YEAR_VERSION == (year) && OSTREE_RELEASE_VERSION >= (release)))