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 authored and Atomic Bot committed 2017-03-28 20:41:28 +00:00
1 parent 97961ed2ce
commit b51ce8cb0a
1 file changed
+1 -1
+1 -1
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)))