Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Oct 2010 04:45:09 GMT
From:      grarpamp <grarpamp@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/151168: pkg_add -K should preserve file metadata
Message-ID:  <201010030445.o934j9ej014902@www.freebsd.org>
Resent-Message-ID: <201010030450.o934o1Xi001959@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010030445.o934j9ej014902>