[darwinbuild-changes] [109] trunk/darwinxref/DBDataStore.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:46:35 PDT 2006
Revision: 109
http://trac.macosforge.org/projects/darwinbuild/changeset/109
Author: kevin
Date: 2006-10-04 01:46:35 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
- remove old dictionary contents before storing new dictionary
Modified Paths:
--------------
trunk/darwinxref/DBDataStore.c
Modified: trunk/darwinxref/DBDataStore.c
===================================================================
--- trunk/darwinxref/DBDataStore.c 2005-07-28 20:30:31 UTC (rev 108)
+++ trunk/darwinxref/DBDataStore.c 2006-10-04 08:46:35 UTC (rev 109)
@@ -484,6 +484,13 @@
CFStringRef key = CFArrayGetValueAtIndex(keys, i);
char* ckey = strdup_cfstr(key);
CFTypeRef cf = CFDictionaryGetValue(value, key);
+
+ if (project) {
+ SQL("DELETE FROM properties WHERE build=%Q AND project=%Q AND property=%Q AND key=%Q", cbuild, cproj, cprop, ckey);
+ } else {
+ SQL("DELETE FROM properties WHERE build=%Q AND project IS NULL AND property=%Q AND key=%Q", cbuild, cprop, ckey);
+ }
+
if (CFGetTypeID(cf) == CFStringGetTypeID()) {
char* cvalu = strdup_cfstr(cf);
if (project) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/401ea88b/attachment.html
More information about the darwinbuild-changes
mailing list