Browse Source

add --manual-installed commandline switch

debian/1.8.y
Michael Vogt 8 years ago
parent
commit
3bdf7da5b4
  1. 9
      apt-private/private-cacheset.cc
  2. 1
      apt-private/private-cmndline.cc

9
apt-private/private-cacheset.cc

@ -52,6 +52,15 @@ bool GetLocalitySortedVersionSet(pkgCacheFile &CacheFile,
output_set.insert(policy->GetCandidateVer(P));
}
}
else if (_config->FindB("APT::Cmd::Manual-Installed") == true)
{
if (P.CurrentVer() &&
((*DepCache)[P].Flags & pkgCache::Flag::Auto) == false)
{
pkgPolicy *policy = CacheFile.GetPolicy();
output_set.insert(policy->GetCandidateVer(P));
}
}
else
{
pkgPolicy *policy = CacheFile.GetPolicy();

1
apt-private/private-cmndline.cc

@ -226,6 +226,7 @@ bool addArgumentsAPT(std::vector<CommandLine::Args> &Args, char const * const Cm
{
addArg(0,"installed","APT::Cmd::Installed",0);
addArg(0,"upgradable","APT::Cmd::Upgradable",0);
addArg(0,"manual-installed","APT::Cmd::Manual-Installed",0);
addArg('v', "verbose", "APT::Cmd::List-Include-Summary", 0);
addArg('a', "all-versions", "APT::Cmd::All-Versions", 0);
}

Loading…
Cancel
Save