On Fri, Jan 01, 2010 at 01:29:48PM -0600, Chris Bennett wrote:
> I want to keep a local PKG_CACHE to speed up updates. Without that,
> when the same package is re-installed after dependency change, the
> same package has to be downloaded again
> 
> Correct me if I'm wrong, but if I use:
> 
> pkg_add -s -ui -F update -F updatedepends or
> pkg_add -n -ui -F update -F updatedepends
> 
> I can get a list of new packages to add to package cache and just
> set PKG_PATH to that directory.
> 
> The man page did not make it clear if I should use -n or -s

Huh ?
     -s       Don't actually install packages, skip as many steps as needed
              and report only the disk size changes that would happen.  Simi-
              lar to -n, except it also skips fetching full packages and stops
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              at getting the information it needs.
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

how do you expect this to work with PKG_CACHE ?


Apart from this, pkg_add -n is currently very broken if used with -u. There
are some old assumptions made for -n that no longer hold with -u, and it can
get very confused when it sees packages that have the same name, but differing
internals.

So:
- it should work with -n
- it won't work with -s
- -n + -u is currently broken, it's on my list of things to fix.

Reply via email to