summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-06-30 10:50:08 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-06-30 10:50:08 +0000
commitfc5aece9d8600b68cf8d654b379b6d840f2a5524 (patch)
treebdac307308d78e8e4aa379f19914aeebc7690b50
parent899d08fea9e10d617afaa42f51f4abda76fc508f (diff)
* Install-Reason -> Auto-Installed in pkgstates
-rw-r--r--apt-pkg/depcache.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 366687382..81c79d812 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -125,12 +125,11 @@ bool pkgDepCache::readStateFile(OpProgress *Prog)
// Silently ignore unknown packages and packages with no actual
// version.
if(!pkg.end() && !pkg.VersionList().end()) {
- short reason = section.FindI("Install-Reason", 0);
+ short reason = section.FindI("Auto-Installed", 0);
if(reason > 0)
PkgState[pkg->ID].Flags |= pkgCache::Flag::Auto;
if(_config->FindB("Debug::pkgAutoRemove",false))
- std::cout << "Install-Reason for: " << pkgname
- << " is " << reason << std::endl;
+ std::cout << "Auto-Installed : " << pkgname << std::endl;
amt+=section.size();
if(Prog != NULL)
Prog->OverallProgress(amt, file_size, 1,
@@ -165,7 +164,7 @@ bool pkgDepCache::writeStateFile(OpProgress *prog)
std::clog << "AutoInstal: " << pkg.Name() << std::endl;
ostr.str(string(""));
ostr << "Package: " << pkg.Name()
- << "\nInstall-Reason: 1\n\n";
+ << "\nAuto-Installed: 1\n\n";
StateFile.Write(ostr.str().c_str(), ostr.str().size());
}
}