On Thu, Sep 28, 2006 at 01:27:31AM +0300, Paul Irofti wrote:
> I like your tool, it's nicer than cat-ing through pkgdb.

Thanks.

> I noticed duplicates with pkgs that are output by your script, some 
> dependencies are printed in the 'You may also delete' field too.

There are no duplicates. In the output of the script, what you see in
the "Dependencies" field are the normal dependencies of the package.  In
the "You may also delete" field you see which of these dependencies are
not needed by any other package on your system once you delete the
package you are interested. So, no duplicates.

> $ ./pkg_dig mutt
> 
> *- Package matched: mutt-1.5.11p3-hcache-sidebar
> |- Dependencies: gettext-0.14.5p1 .libs-expat-1.95.6p1 libiconv-1.9.2p3 
> gdbm-1.8.3p0
> |- Required by: none
> |- You may also delete: .libs-expat-1.95.6p1 gdbm-1.8.3p0
> 
> $ ./pkg_dig pine
> 
> *- Package matched: pine-4.64p1-kerberos-ldap
> |- Dependencies: openldap-client-2.3.24 .libs-openldap-client-2.3.11p4
> |- Required by: none
> |- You may also delete: .libs-openldap-client-2.3.11p4

The results you are getting though are really strange. The packages you
put in the command line should not match the ones you present as output.
I provide you with the output I get using mutt as an argument since I
do not have pine installed:

[EMAIL PROTECTED] msid $ pkg_dig mutt

*- Package matched: mutt-1.5.12
|- Dependencies: gettext-0.14.5p1 libiconv-1.9.2p3
|- Required by: none
|- You may also delete: none

[EMAIL PROTECTED] msid $ 

This is the actual output you should be getting for mutt. Keep testing
and sending feedback so that I can resolve any potential problems in
my implementation.

-- 
Sideris Michael
http://black.daemons.gr/msid/

Reply via email to