Bug 151168 - pkg_add(1): pkg_add -K should preserve file metadata
Summary: pkg_add(1): pkg_add -K should preserve file metadata
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-03 05:50 UTC by grarpamp
Modified: 2016-12-10 15:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grarpamp 2010-10-03 05:50:01 UTC
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.

Fix: 

Patch the pkg_install toolset to use the fetch(3) functions:
fetchXGetURL()
fetchStatURL()
How-To-Repeat: Use pkg_add -K.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2016-12-10 15:38:31 UTC
pkg tools are not supported anymore