--- Viv Kendon <[EMAIL PROTECTED]> wrote:
> On Wed, 13 Apr 2005, Tarek Rached wrote:
> 
> >> You can't replace it with, say, compress-zlib-pm581?  What package
> >> depends a -560 and only -560 version?
> >
> > I'm not actually sure what depends on it.  I know the fink commands
> to
> > see what packages a given package depends on, but not what packages
> are
> > dependant on a given package.
> 
> Try removing it (fink remove compress-zlib-pm560): fink will 
> complain it can't do it because xxx package depends on it, 
> thereby telling you which package it is...  Or, maybe it 
> will just remove it because nothing depends on it 
> (especially if you install one of the later compress-zlib 
> packages first).  In which case, problem solved.

Well, that seemed to do it!  (Removing and then just not reinstalling,
that is...)

Thanks a ton, everyone!
Tarek.

PS.  Not sure if this is of any use to anyone, but In trying to figure
out what packages depended on compress-zlib-pm560, I whipped up this
perl script to show-deps on a bunch of packages and grep for the
dependant package of interest....

the first argument is the package of interest; the rest of the args are
 packages whose dependance on the package of interest is unknown  (and
i even tried to not make that sound confusing :) )

check-parent-deps.pl
-----------------------------
#!/usr/bin/perl
# first arg is the dependee, the rest are the dependors

$| =1;
$dep_pack = shift @ARGV;

for $pack (@ARGV){

        print "Checking $pack...";
        $out = `fink show-deps $pack`;
        if ($out =~/$dep_pack/ ) {
                print "YEP!\n";
                push @found, $pack;
        } else {
                print "no\n";
        }
}

print "Found " . scalar @found ." of ". scalar @ARGV . " packages that
depend on $dep_pack:\n";

for $pack (@found) {
        print $pack."\n";
}


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to