PERFORCE change 124339 for review

Garrett Cooper gcooper at FreeBSD.org
Mon Jul 30 09:27:30 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=124339

Change 124339 by gcooper at optimus-revised_pkgtools on 2007/07/30 09:26:27

	Minute changes to IPC API calls to make checksum and file existence
	into dynamic function calls, as opposed to statically set flags (which
	can change at any given time).

Affected files ...

.. //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/api.c#4 edit

Differences ...

==== //depot/projects/soc2007/revised_fbsd_pkgtools/v2/lib/ipc/api.c#4 (text+ko) ====

@@ -51,9 +51,9 @@
     if(ipc_info->remove_entry)
         header += IPC_MSG_REMOVE_ENTRY;
 
-    if(ipc_info->file_info->exists) {
+    if(Fexists(ipc_info->file_info, 0)) {
 
-        if(ipc_info->file_info->valid_checksum)
+        if(checksum_matches(ipc_info->file_info, MD5))
             header += IPC_MSG_VALID_CHECKSUM;
 
         header += IPC_MSG_FILE_EXISTS;


More information about the p4-projects mailing list