CVSROOT:        /cvs
Module name:    src
Changes by:     es...@cvs.openbsd.org   2022/04/16 03:32:40

Modified files:
        usr.sbin/pkg_add: Makefile 
        usr.sbin/pkg_add/OpenBSD: PackageLocation.pm PkgAdd.pm 
        usr.sbin/pkg_add/OpenBSD/PackageRepository: Installed.pm 
Added files:
        usr.sbin/pkg_add/OpenBSD/PackageRepository: Cache.pm 

Log message:
refactor the code so that caching is setup in the repository that's
linked to quirks during do_quirks.

then add a pre-cache that does run locate once on the full list of things
we want to update/install (assuming "regular" pkgsets, that is, where the
names are the ones we want).

Then the actual fetching of caching info will look in that pre-cache before
resorting to locate itself (or going straight to the wire).

The code isn't active yet, the XXX comment in
OpenBSD/PackageRepository/Installed.pm
says it all.

Reply via email to