Subject: Re: Broken PKG_PATH semantics on pkg_add
To: David Brownlee <abs@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 08/27/2002 13:27:45
On Tue, 27 Aug 2002, David Brownlee wrote:
> > > pkg_add /path1/fu.tgz /path2/bar.tgz bundy.tgz
> > >
> > > should it prepend both path1 and path2 to PKG_PATH, and should
> > > bundy be looked for in /path1 and /path2 before .?
> >
> > I wouldn't say so.
>
> So prepend both path1 and path2 to PKG_PATH, but after any
> filenames on the commandline has been resolved?
Move the path-prepending to pkg_do(), then prepend each path only for the
pkg that it belongs to (prepend /path1 for fu.tgz, /path2 for bar.tgz and
maybe . for bundy.tgz). Of course, restore the path each pkg.
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/