Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2007 11:42:08 -0700
From:      Jo Rhett <jrhett@svcolo.com>
To:        Clement Laforet <sheepkiller@cultdeadsheep.org>
Cc:        ports@freebsd.org
Subject:   pkg_add needs to have a command line option that replicates PACKAGESITE
Message-ID:  <AE68FE91-F8B6-46CB-98CD-837F44945BC9@svcolo.com>
In-Reply-To: <20070509120724.GA39154@goofy.cultdeadsheep.org>
References:  <46418749.9020902@svcolo.com> <20070509120724.GA39154@goofy.cultdeadsheep.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 9, 2007, at 5:07 AM, Clement Laforet wrote:
>> pkg_add really needs a command line option instead of only using the
>> environment variables...
>
> "pkg_add -r http://my.freebsd-repo.com/packages/All/ 
> my_packages-1.0.tbz"
> works fine ;-)

The behavior is not identical.  For example, this works only for a  
single package.

/usr/sbin/pkg_add -r http://my.location/packages/{pkgname}

This works for multiple packages:

export PACKAGESITE=http://my.location/packages/
/usr/sbin/pkg_add -r {pkgname} {pkgname2}

Also, the former will not resolve dependancies properly (it alters  
the path), whereas the latter will.

In short, they are not synonymous.  A command line option which is  
synonymous with the environment variable would be very useful in  
scripts/cfengine/etc.

I thought I had opened a bug on this, but apparently not...

-- 
Jo Rhett
senior geek

Silicon Valley Colocation
Support Phone: 408-400-0550







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AE68FE91-F8B6-46CB-98CD-837F44945BC9>