mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-26 14:04:12 +03:00
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:
parent
97961ed2ce
commit
b51ce8cb0a
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user