Add a clean pkg_add implementation on top of libarchive and libfetch.
authorjoerg <joerg>
Sat, 26 Apr 2008 17:44:23 +0000 (17:44 +0000)
committerjoerg <joerg>
Sat, 26 Apr 2008 17:44:23 +0000 (17:44 +0000)
commit06be95761be545e84efdb9cb6993c68f0a5694f4
tree18b5fab383165900e8ab512d841e8b785c87a801
parent19d7929a342eeb556e2953665e788b2333032700
Add a clean pkg_add implementation on top of libarchive and libfetch.
Known regressions:
- "pkg_add -" (aka reading from stdin) is currently not supported
- "pkg_add -s" is not supported either
- no progress reports for the downloads
- binary packages with hardlinks created by pkg_create before
  pkg_install-20080422 will not extract correctly (libarchive issue)
- no adhoc check for potential conflicts between dependencies and
  already installed packages

Features:
- Twice as fast for the typical case of /var/tmp and /usr/pkg on
  different filesystems
- Standalone
- implicit conflict detection before actual installation.
21 files changed:
pkgtools/pkg_install/files/Makefile.in
pkgtools/pkg_install/files/add/Makefile.in
pkgtools/pkg_install/files/add/add.h
pkgtools/pkg_install/files/add/extract.c [deleted file]
pkgtools/pkg_install/files/add/futil.c [deleted file]
pkgtools/pkg_install/files/add/main.c
pkgtools/pkg_install/files/add/perform.c
pkgtools/pkg_install/files/add/pkg_add.1
pkgtools/pkg_install/files/create/perform.c
pkgtools/pkg_install/files/info/Makefile.in
pkgtools/pkg_install/files/info/perform.c
pkgtools/pkg_install/files/lib/Makefile.in
pkgtools/pkg_install/files/lib/conflicts.c
pkgtools/pkg_install/files/lib/file.c
pkgtools/pkg_install/files/lib/ftpio.c [deleted file]
pkgtools/pkg_install/files/lib/lib.h
pkgtools/pkg_install/files/lib/pen.c [deleted file]
pkgtools/pkg_install/files/lib/pexec.c [deleted file]
pkgtools/pkg_install/files/lib/pkg_io.c
pkgtools/pkg_install/files/lib/plist.c
pkgtools/pkg_install/files/lib/str.c