[vlc-commits] Update: allow it to work with 1.1.10
Jean-Baptiste Kempf
git at videolan.org
Sat Jun 4 01:28:20 CEST 2011
vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jun 4 01:19:35 2011 +0200| [5c7442ad5295993f7d380df7b9fb67bb48d28aa2] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=5c7442ad5295993f7d380df7b9fb67bb48d28aa2
---
src/misc/update.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/misc/update.c b/src/misc/update.c
index 4660b0b..79e0110 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -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
More information about the vlc-commits
mailing list