[vlc-commits] Update update status files URLs

Rafaël Carré git at videolan.org
Fri Sep 7 15:52:42 CEST 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Mon Apr  2 18:58:30 2012 -0400| [92df5c7d8b99007ce4946938f6b818c77fe9e89d] | committer: Jean-Baptiste Kempf

Update update status files URLs

- add a win64 file
- do not repeatedly define the constant part
- use the test URL on every platform using --enable-debug, not only win32
(cherry picked from commit 87cfa6dd719667aa1b52f09ef242832b830b6a4f)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=92df5c7d8b99007ce4946938f6b818c77fe9e89d
---

 src/misc/update.c |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/misc/update.c b/src/misc/update.c
index 41050bb..cf80471 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -75,17 +75,20 @@
  */
 
 #if defined( UNDER_CE )
-#   define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-ce"
+# define UPDATE_OS_SUFFIX "-ce"
+#elif defined( WIN64 )
+# define UPDATE_OS_SUFFIX "-win-x64"
 #elif defined( WIN32 )
-#  ifndef NDEBUG
-#    define UPDATE_VLC_STATUS_URL "http://update-test.videolan.org/vlc/status-win-x86"
-#  else
-#    define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-win-x86"
-#  endif
+# define UPDATE_OS_SUFFIX "-win-x86"
 #else
-#   define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status"
+# define UPDATE_OS_SUFFIX ""
 #endif
 
+#ifndef NDEBUG
+# define UPDATE_VLC_STATUS_URL "http://update-test.videolan.org/vlc/status-win-x86"
+#else
+# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status" UPDATE_OS_SUFFIX
+#endif
 
 /*****************************************************************************
  * Update_t functions



More information about the vlc-commits mailing list