Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For properties that are exactly arrays like "fooprop" = ("bar", "baz"),
have the SQL insert statements add an dummy index key: INSERT (property, key, value) ("fooprop", 0, "bar") INSERT (property, key, value) ("fooprop", 1, "baz") So that during retrieval in _DBCopyPropArray(), the output array is sorted the same way as the plist (since it does an "ORDER BY key"). Properties that have an array nested in a dictionary don't get this treatment, so they may be retrieved in a different and non-deterministic order than they were inserted. This solves the specific problem where you want "source_sites" to contain multiple mirrors in a specified priority order, or where one source site might have overriding content and must be accessed first. As above, "dependencies" > "build" don't preserve sort order, but for the current usage, that's OK. git-svn-id: https://svn.macosforge.org/repository/darwinbuild/trunk@125 10a61168-4876-4dac-953b-31e694342555
- Loading branch information