On Mon, Oct 26, 2009 at 10:00:20PM -0400, Juan Miscaro wrote:
> 2009/10/25 Jacob Meuser <jake...@sdf.lonestar.org>:
> > On Sun, Oct 25, 2009 at 10:29:29PM -0400, Juan Miscaro wrote:
> >> I've had this problem for a long time (over many OpenBSD releases).
> >>
> >> The pkg_add man page (for 4.5) states:
> >>
> >> "If a given package name cannot be found, the directories named by
> > B  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >> PKG_PATH are searched. B It should contain a series
> >> of entries separated by colons. B Each entry consists of a directory
> >> name. B URL schemes such as FTP, HTTP, HTTPS, or SCP are also
> >> appropriate."
> >>
> >> On a client machine:
> >>
> >> PKG_PATH=http://$HTTP_MASTER/:http://$HTTP_MASTER/by_port/i386/all/
> >>
> >> My master server serves up normal packages and those packages compiled
> >> from ports.
> >>
> >> When I do this only the first component is searched. B I have to do a
> >> second package update run with PKG_PATH pointing directly to the
> > B  B  B  B  ^^^^^^^^^^^^^^
> >> second component for the "ports packages" to be seen.
> >>
> >> Why is this?
> >
> > did you give pkg_add a package name?
> 
> No, as I stated I am updating my packages.  Are you saying that
> PKG_PATH takes on a different meaning in this context?  That certainly
> seems to be the case.  Too bad.

well, think about it.  if pkg_add were scanning all paths for the
latest of each package ... that could easily be a very large and
complicated task.  certainly much more complex than finding a first
match.

suggestions for you:
a) use one path for all packages
or
b) instead of pkg_add -u, use pkg_add -r <list of exact names of packages
to be updated, perhaps from running the ports out-of-date script, or
following ports-changes, or however>

> 
> --
> /jm

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Reply via email to