From b51ce8cb0ac16074a5a3b5656247d9dd6a8884c3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 28 Mar 2017 15:23:14 -0400 Subject: [PATCH] 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 --- src/libostree/ostree-version.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-version.h.in b/src/libostree/ostree-version.h.in index 8a4776d8..7d775cc2 100644 --- a/src/libostree/ostree-version.h.in +++ b/src/libostree/ostree-version.h.in @@ -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)))