From owner-p4-projects@FreeBSD.ORG Mon Jul 30 09:27:30 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F3B1916A41F; Mon, 30 Jul 2007 09:27:29 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9E6816A419 for ; Mon, 30 Jul 2007 09:27:29 +0000 (UTC) (envelope-from gcooper@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9EBE013C474 for ; Mon, 30 Jul 2007 09:27:29 +0000 (UTC) (envelope-from gcooper@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6U9RTij077380 for ; Mon, 30 Jul 2007 09:27:29 GMT (envelope-from gcooper@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6U9RTiD077377 for perforce@freebsd.org; Mon, 30 Jul 2007 09:27:29 GMT (envelope-from gcooper@FreeBSD.org) Date: Mon, 30 Jul 2007 09:27:29 GMT Message-Id: <200707300927.l6U9RTiD077377@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gcooper@FreeBSD.org using -f From: Garrett Cooper To: Perforce Change Reviews Cc: Subject: PERFORCE change 124339 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 09:27:30 -0000 http://perforce.freebsd.org/chv.cgi?CH=124339 Change 124339 by gcooper@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;