Re: Package dependencies size estimate script

2009-11-12 Thread Marc Espie
On Mon, Nov 09, 2009 at 12:09:05PM +0100, Jan Stary wrote: > No really, what is the right way to recursively list the > dependencies of a given package? pkg_info doesn't seem to > do that natively (and the above attempt only works for > installed packages indeed). Is that a design decision, > say b

Re: Package dependencies size estimate script

2009-11-09 Thread Jan Stary
On Nov 08 09:50:19, Jan Stary wrote: > On Nov 07 19:21:07, srikant@gmail.com wrote: > > Jan Stary wrote: > > > cat /var/db/pkg/$PACKAGE/+REQUIRING | xargs pkg_info -s > > > > Thats just the first level of dependencies. What about the > > dependencies of the dependencies, and so on? It is a tre

Re: Package dependencies size estimate script

2009-11-08 Thread srikant . bsd
Jan Stary wrote: > dir=/var/db/pkg/$pkg Since you use the above mechanism to read the package list, your script only works for already installed packages. Srikant.

Re: Package dependencies size estimate script

2009-11-08 Thread Jan Stary
On Nov 07 19:21:07, srikant@gmail.com wrote: > Jan Stary wrote: > > cat /var/db/pkg/$PACKAGE/+REQUIRING | xargs pkg_info -s > > Thats just the first level of dependencies. What about the > dependencies of the dependencies, and so on? It is a tree > structure. Recursion is needed if you want to

Re: Package dependencies size estimate script

2009-11-07 Thread srikant . bsd
Jan Stary wrote: > cat /var/db/pkg/$PACKAGE/+REQUIRING | xargs pkg_info -s Thats just the first level of dependencies. What about the dependencies of the dependencies, and so on? It is a tree structure. Recursion is needed if you want to know the 'real collateral damage' :) Srikant.

Re: Package dependencies size estimate script

2009-11-05 Thread Srikant Tangirala
Hi Aaron On 11/6/09, Aaron Mason wrote: > On Fri, Nov 6, 2009 at 2:42 AM, wrote: >> Hi >> >> Just wanted to share a script with fellow OpenBSD >> desktop users who like to keep minimal non-base >> software on the machine and prefer to use lighter >> alternatives whenever possible. >> >> This sc

Re: Package dependencies size estimate script

2009-11-05 Thread Aaron Mason
On Fri, Nov 6, 2009 at 2:42 AM, wrote: > Hi > > Just wanted to share a script with fellow OpenBSD > desktop users who like to keep minimal non-base > software on the machine and prefer to use lighter > alternatives whenever possible. > > This script will help you estimate the total space > which

Re: Package dependencies size estimate script

2009-11-05 Thread Aaron Mason
On Fri, Nov 6, 2009 at 2:42 AM, wrote: > Hi > > Just wanted to share a script with fellow OpenBSD > desktop users who like to keep minimal non-base > software on the machine and prefer to use lighter > alternatives whenever possible. > > This script will help you estimate the total space > which