[70412] branches/gsoc10-configfiles/base/src
and.damore at macports.org
and.damore at macports.org
Sun Aug 8 08:22:17 PDT 2010
Revision: 70412
http://trac.macports.org/changeset/70412
Author: and.damore at macports.org
Date: 2010-08-08 08:22:16 -0700 (Sun, 08 Aug 2010)
Log Message:
-----------
debug printf for registry entry functions, portinstall.tcl using _with_md5
Modified Paths:
--------------
branches/gsoc10-configfiles/base/src/cregistry/entry.c
branches/gsoc10-configfiles/base/src/port1.0/portinstall.tcl
branches/gsoc10-configfiles/base/src/registry2.0/entryobj.c
Modified: branches/gsoc10-configfiles/base/src/cregistry/entry.c
===================================================================
--- branches/gsoc10-configfiles/base/src/cregistry/entry.c 2010-08-08 15:13:09 UTC (rev 70411)
+++ branches/gsoc10-configfiles/base/src/cregistry/entry.c 2010-08-08 15:22:16 UTC (rev 70412)
@@ -37,6 +37,7 @@
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
+#include <stdio.h>
/*
* TODO: possibly, allow reg_entry_search to take different matching strategies
@@ -878,6 +879,7 @@
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)
Modified: branches/gsoc10-configfiles/base/src/port1.0/portinstall.tcl
===================================================================
--- branches/gsoc10-configfiles/base/src/port1.0/portinstall.tcl 2010-08-08 15:13:09 UTC (rev 70411)
+++ branches/gsoc10-configfiles/base/src/port1.0/portinstall.tcl 2010-08-08 15:22:16 UTC (rev 70412)
@@ -198,7 +198,7 @@
if {[info exists installPlist]} {
# register files
- $regref map $installPlist
+ $regref map_with_md5 $installPlist
}
# store portfile
Modified: branches/gsoc10-configfiles/base/src/registry2.0/entryobj.c
===================================================================
--- branches/gsoc10-configfiles/base/src/registry2.0/entryobj.c 2010-08-08 15:13:09 UTC (rev 70411)
+++ branches/gsoc10-configfiles/base/src/registry2.0/entryobj.c 2010-08-08 15:22:16 UTC (rev 70412)
@@ -38,6 +38,7 @@
#include "entryobj.h"
#include "registry.h"
#include "util.h"
+#include <stdio.h>
const char* entry_props[] = {
"name",
@@ -158,6 +159,7 @@
static int entry_obj_filemap_with_md5(Tcl_Interp* interp, reg_entry* entry, int objc,
Tcl_Obj* CONST objv[]) {
reg_registry* reg = registry_for(interp, reg_attached);
+ printf("GSOCDBG: we're into entry_obj_filemap_with_md5\n");
if (objc != 3) {
Tcl_WrongNumArgs(interp, 2, objv, "map {file md5checksum}-list");
return TCL_ERROR;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100808/e17582ea/attachment-0001.html>
More information about the macports-changes
mailing list