Commit 5c7442ad authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Update: allow it to work with 1.1.10

Now, 1.1.9 will upgrade to 1.1.10, but 1.1.10 will act as 1.1.1 and
consider 1.1.9 newer; and not update to 1.1.11...
Of course, this commit is not good at all, but this is the simplest way
I could do it, without breaking everything.
parent 74d62889
......@@ -458,7 +458,7 @@ bool update_NeedUpgrade( update_t *p_update )
int current_version[] = {
*PACKAGE_VERSION_MAJOR - '0',
*PACKAGE_VERSION_MINOR - '0',
*PACKAGE_VERSION_REVISION - '0',
atoi(PACKAGE_VERSION_REVISION),
/* extra string of development versions is "-git", "-rc" ..
* so make sure version a.b.c is newer than a.b.c-XXX */
(*PACKAGE_VERSION_EXTRA == '-') ? -1 : *PACKAGE_VERSION_EXTRA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment