[70418] branches/gsoc10-configfiles/base/src/cregistry/entry.c
Revision: 70418 http://trac.macports.org/changeset/70418 Author: and.damore@macports.org Date: 2010-08-08 12:44:35 -0700 (Sun, 08 Aug 2010) Log Message: ----------- loop till arg_count/2, ready to put real md5 hashes into registry Modified Paths: -------------- branches/gsoc10-configfiles/base/src/cregistry/entry.c Modified: branches/gsoc10-configfiles/base/src/cregistry/entry.c =================================================================== --- branches/gsoc10-configfiles/base/src/cregistry/entry.c 2010-08-08 18:52:21 UTC (rev 70417) +++ branches/gsoc10-configfiles/base/src/cregistry/entry.c 2010-08-08 19:44:35 UTC (rev 70418) @@ -879,13 +879,12 @@ sqlite3_stmt* stmt = NULL; char* insert = "INSERT INTO registry.files (id, path, mtime, active, md5sum) " "VALUES (?, ?, 0, 0, ?)"; - printf("GSOCDBG: we're into reg_entry_map_with_md5\n"); /* sqlite3_prepare() is documented as legacy, http://www.sqlite.org/c3ref/step.html use sqlite3_prepare_v2() should be used instead */ if ((sqlite3_prepare(reg->db, insert, -1, &stmt, NULL) == SQLITE_OK) && (sqlite3_bind_int64(stmt, 1, entry->id) == SQLITE_OK)) { int i; - for (i=0; i<arg_count && result; i++) { + for (i=0; i<(arg_count/2) && result; i++) { /* cycles through files[] array of strings, the if argument parse a file from the array and put in into the SQL statement */
participants (1)
-
and.damore@macports.org