From a079269166d120bcbcb33d34f4b1c8f60d102e32 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 20 Dec 2012 02:53:48 -0500 Subject: [PATCH] Fix version comparisons with -stable suffix (#1488876) --- bin/update.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update.sh b/bin/update.sh index 59aa596..2015aa9 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -34,7 +34,7 @@ $opts['version'] = $input; } -if ($opts['version'] && version_compare($opts['version'], RCMAIL_VERSION, '>')) +if ($opts['version'] && version_compare(version_parse($opts['version']), version_parse(RCMAIL_VERSION), '>')) die("Nothing to be done here. Bye!\n"); @@ -169,7 +169,7 @@ } // index contacts for fulltext searching - if (version_compare($opts['version'], '0.6', '<')) { + if (version_compare(version_parse($opts['version']), '0.6.0', '<')) { system(INSTALL_PATH . 'bin/indexcontacts.sh'); } -- Gitblit v1.9.1