Revision: 117438 https://trac.macports.org/changeset/117438 Author: jmr@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[] = {
participants (1)
-
jmr@macports.org