> On Monday 19 November 2007 14.21:17 Juan Miscaro wrote:
> > On two OpenBSD 4.2 systems I have a (master) system that contains
> two
> > repositories - one of regular packages and one of packages derived
> from
> > ports. On the client (slave) system I have a script with a
> PKG_PATH
> > containing both repositories:
> >
> > PKG_PATH_LAN1=ftp://$MASTER/$VERSION/packages/
> > PKG_PATH_LAN2=ftp://$MASTER/$VERSION/packages/by_port/i386/all/
> > PKG_PATH=$PKG_PATH_LAN1:$PKG_PATH_LAN2
> >
> > However the second one (PKG_PATH_LAN2) is never consulted. If I
> remove
> > the first one then packages are found and installed with no
> problem.
--- christian widmer <[EMAIL PROTECTED]> wrote:
> ask yourself why do you use ':' as a separator?
>
> you have ':' in you PKG_PATH_LAN1 and PKG_PATH_LAN2.
> this is by the way the reason why you can't do what you're trying to.
{ fixed top posting }
Well the pkg_add man page seems to disagree:
If the given package names are not found in the current working
directo-
ry, pkg_add will search for them in each directory named by the
PKG_PATH
environment variable. Since a few URL schemes contain colons,
pkg_add
relies on each directory ending in a / to split the path
correctly.
// juan
Instant Messaging, free SMS, sharing photos and more... Try the new
Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/