|
@@ -555,6 +555,7 @@ bool Depends(CommandLine &CmdL)
|
|
|
|
|
|
|
|
bool Recurse = _config->FindB("APT::Cache::RecurseDepends",false);
|
|
bool Recurse = _config->FindB("APT::Cache::RecurseDepends",false);
|
|
|
bool Installed = _config->FindB("APT::Cache::Installed",false);
|
|
bool Installed = _config->FindB("APT::Cache::Installed",false);
|
|
|
|
|
+ bool Important = _config->FindB("APT::Cache::Important",false);
|
|
|
bool DidSomething;
|
|
bool DidSomething;
|
|
|
do
|
|
do
|
|
|
{
|
|
{
|
|
@@ -577,7 +578,12 @@ bool Depends(CommandLine &CmdL)
|
|
|
|
|
|
|
|
for (pkgCache::DepIterator D = Ver.DependsList(); D.end() == false; D++)
|
|
for (pkgCache::DepIterator D = Ver.DependsList(); D.end() == false; D++)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+ // Important deps only
|
|
|
|
|
+ if (Important == true)
|
|
|
|
|
+ if (D->Type != pkgCache::Dep::PreDepends &&
|
|
|
|
|
+ D->Type != pkgCache::Dep::Depends)
|
|
|
|
|
+ continue;
|
|
|
|
|
+
|
|
|
pkgCache::PkgIterator Trg = D.TargetPkg();
|
|
pkgCache::PkgIterator Trg = D.TargetPkg();
|
|
|
|
|
|
|
|
if((Installed && Trg->CurrentVer != 0) || !Installed)
|
|
if((Installed && Trg->CurrentVer != 0) || !Installed)
|