From owner-freebsd-bugs@FreeBSD.ORG Sun Oct 3 04:50:01 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97AA31065672 for ; Sun, 3 Oct 2010 04:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5BBAB8FC13 for ; Sun, 3 Oct 2010 04:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o934o1Rf001960 for ; Sun, 3 Oct 2010 04:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o934o1Xi001959; Sun, 3 Oct 2010 04:50:01 GMT (envelope-from gnats) Resent-Date: Sun, 3 Oct 2010 04:50:01 GMT Resent-Message-Id: <201010030450.o934o1Xi001959@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, grarpamp Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A782106564A for ; Sun, 3 Oct 2010 04:45:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5A58FC0A for ; Sun, 3 Oct 2010 04:45:09 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o934j9mi014903 for ; Sun, 3 Oct 2010 04:45:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o934j9ej014902; Sun, 3 Oct 2010 04:45:09 GMT (envelope-from nobody) Message-Id: <201010030445.o934j9ej014902@www.freebsd.org> Date: Sun, 3 Oct 2010 04:45:09 GMT From: grarpamp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/151168: pkg_add -K should preserve file metadata X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 04:50:01 -0000 >Number: 151168 >Category: bin >Synopsis: pkg_add -K should preserve file metadata >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 03 04:50:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: grarpamp >Release: i386: HEAD, RELENG_8 >Organization: >Environment: Not relevant. >Description: pkg_add -K should preserve the source file's metadata when saving the destination file in the PKGDIR. This will make it much easier to compare the PKGDIR contents with, say, an ftp mirror... bye eye, or with, say, rsync. It will also stop needless file transfers that take place just because some file somewhere has a newer timestamp, due to perhaps removing files from PKGDIR and running pkg_add again, mirrors, backups, etc. >How-To-Repeat: Use pkg_add -K. >Fix: Patch the pkg_install toolset to use the fetch(3) functions: fetchXGetURL() fetchStatURL() >Release-Note: >Audit-Trail: >Unformatted: