Wednesday, November 01, 2017

Re: pkg_info fails for non-installed packages when PKG_CACHE is set to a directory the current user can't write to

Marc Espie kirjoitti 11/01/17 klo 20:11:
> On Wed, Nov 01, 2017 at 11:51:52AM +0100, Marc Espie wrote:
>> Somewhat low priority.
>
> Fairly easy to fix actually, so it's going to be in current, thx

Sweet.

>> Well, people usually don't define PKG_CACHE manually, but rely
>> on the ports tree to do it when needed.

Oh, it's a ports tree mechanism? I only use packages, so I've been
using it for a fast reinstall/lookup cache in case I come to second
thoughts about some package:

$ cat /etc/profile
export PKG_CACHE=/var/cache/pkg
export PKG_PATH=$PKG_CACHE:installpath

Though this came back to bite me when I tried upgrading packages
yesterday, as pkg_add -u naturally quit its search at the cache. This
one probably isn't a supported use case...

No comments:

Post a Comment