pkg_search: Change URLs and honor possible mirror settings
authorMatthias Schmidt <matthias@dragonflybsd.org>
Wed, 19 Aug 2009 17:12:57 +0000 (19:12 +0200)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Wed, 19 Aug 2009 17:12:57 +0000 (19:12 +0200)
commit0bc904b6e96f6d63ed3db2c5b1473c8170845f70
tree0f5cf74579611487f194d36f22264f15646092c7
parenteac446c50abe1405a40b6ff5eb347bcae6464101
pkg_search: Change URLs and honor possible mirror settings

- Change the version variable to match latest changes on avalon (2.2 ->
  2.2.0)
- If the user uses $BINPKG_SITES or /etc/settings.conf (like with
  pkg_radd) try to download the summary file from a mirror first.  If
  that fails, fall back to default aka avalon

NOTE: If someone changes the directory layout on avalon, please update
the pkg_* tools in base as well.
usr.bin/pkg_search/pkg_search.sh