[117438] trunk/base/src/cregistry/sql.c
jmr at macports.org
jmr at macports.org
Wed Feb 26 00:32:42 PST 2014
Revision: 117438
https://trac.macports.org/changeset/117438
Author: jmr at macports.org
Date: 2014-02-26 00:32:42 -0800 (Wed, 26 Feb 2014)
Log Message:
-----------
registries in recent fresh installations will be labeled version 1.1 not 1.100, so the 1.1 comparison has to stay
Modified Paths:
--------------
trunk/base/src/cregistry/sql.c
Modified: trunk/base/src/cregistry/sql.c
===================================================================
--- trunk/base/src/cregistry/sql.c 2014-02-26 08:24:19 UTC (rev 117437)
+++ trunk/base/src/cregistry/sql.c 2014-02-26 08:32:42 UTC (rev 117438)
@@ -264,7 +264,11 @@
/* we can't call vercmp directly because it's static, but we have
* sql_version, which is basically an alias */
- if (sql_version(NULL, -1, version, -1, "1.100") < 0) {
+ /* There was a bug where the registry version was set as a float
+ * instead of a string on fresh installs, so some 1.100 registries
+ * will say 1.1. Fortunately, there were no other versions between
+ * 1.000 and 1.100. */
+ if (sql_version(NULL, -1, version, -1, "1.1") < 0) {
/* we need to update to 1.1, add binary field and index to files
* table */
static char* version_1_1_queries[] = {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140226/3bdc24de/attachment-0001.html>
More information about the macports-changes
mailing list