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:
1 parent
97961ed2ce
commit
b51ce8cb0a
1 file changed
+1
-1
@@ -78,5 +78,5 @@
|
|||||||
* of ostree is equal or greater than the required one.
|
* of ostree is equal or greater than the required one.
|
||||||
*/
|
*/
|
||||||
#define OSTREE_CHECK_VERSION(year,release) \
|
#define OSTREE_CHECK_VERSION(year,release) \
|
||||||
(OSTREE_YEAR_VERSION >= (year) || \
|
(OSTREE_YEAR_VERSION > (year) || \
|
||||||
(OSTREE_YEAR_VERSION == (year) && OSTREE_RELEASE_VERSION >= (release)))
|
(OSTREE_YEAR_VERSION == (year) && OSTREE_RELEASE_VERSION >= (release)))
|
||||||
Reference in new issue
Block a user