summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-03-28 15:23:14 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-03-28 20:41:28 +0000
commitb51ce8cb0ac16074a5a3b5656247d9dd6a8884c3 (patch)
tree19734344c2b08038a4bed9462b9fd4aa3c04c2bb
parent97961ed2cec379c0bbee3823503bb8fd5f67257b (diff)
downloadostree-b51ce8cb0ac16074a5a3b5656247d9dd6a8884c3.tar.gz
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
-rw-r--r--src/libostree/ostree-version.h.in2
1 files changed, 1 insertions, 1 deletions
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)))