Date: Sun, 22 Apr 2007 15:39:33 -0700 From: Nate Lawson <nate@root.org> To: ports@freebsd.org Cc: current <current@freebsd.org> Subject: pkg_add cache for use with -K flag Message-ID: <462BE425.2030401@root.org>
next in thread | raw e-mail | index | archive | help
I have been thinking about adding some simple behavior to deal with pkg_add of failed or repeated packages. Currently with pkg_add -r, all packages (including dependencies) are re-fetched if there is any failure. With the -K flag though, the dependent packages should already be present on the local filesystem and can thus be used instead of the remote versions. The patch would be enabled if the PKGDIR environmental variable is present. When adding a package, it would first check PKGDIR for the dependencies and install from local copies if present. I think the main package itself would still need to be re-fetched since -r doesn't specify a version and there is no way to tell if the .tgz in PKGDIR is the most recent. Has anyone thought along these lines before? -- Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?462BE425.2030401>