Refactor locator code so it's a proper object.
authorespie <espie@openbsd.org>
Mon, 29 May 2017 12:28:54 +0000 (12:28 +0000)
committerespie <espie@openbsd.org>
Mon, 29 May 2017 12:28:54 +0000 (12:28 +0000)
commit01fd8ee4ca1f1d26f6a7f0ee358cd24091228ea7
treefacdd4e11de2499d426083333b355a9c21fd948d
parent8e8e0d3d408e14729ff592be476acfeb676010cd
Refactor locator code so it's a proper object.
allow  fw_update to short-circuit entirely, thus the specific
treatment of paths is actually less of a special case,
and the code that reaches into /etc/installurl is no longer used
at all in that case.

problem noticed by mlarkin@
usr.sbin/pkg_add/OpenBSD/FwUpdate.pm
usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
usr.sbin/pkg_add/OpenBSD/State.pm