[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Does apt-cache showpkg lump Depends and Suggests?



Hello!

On Wed, Jun 09, 2004 at 03:08:56AM +0800, Dan Jacobson wrote:
> Does apt-cache showpkg lump Depends and Suggests?
> $ apt-cache showpkg aptitude
> Reverse Depends:
>   base-config,aptitude
>   apt,aptitude
> $ apt-get --print-uris remove aptitude
> The following packages will be REMOVED:
>   aptitude base-config
> 
> Man apt-cache doesn't mention Suggests.  If apt depended on, not just
> suggested aptitude, it would have to be removed too.

That's right, please see the source (cmdline/apt-cache.cc)
|      cout << "Reverse Depends: " << endl;
|      for (pkgCache::DepIterator D = Pkg.RevDependsList(); D.end() != true; D++)
|      {
|         cout << "  " << D.ParentPkg().Name() << ',' << D.TargetPkg().Name();
|         if (D->Version != 0)
|            cout << ' ' << DeNull(D.TargetVer()) << endl;
|         else
|            cout << endl;
|      }
with Pkg.RevDependsList() using RevDepends which is a linked list of
_all dependencies_ linked to this package, and not just Depends:.

Yes, this might be slightly confusing. If you think this is a bug and
the reading should be changed to "Reverse Dependencies:" please act
accordingly.

Cheers,
Flo

Attachment: signature.asc
Description: Digital signature


Reply to: