summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-26 19:22:23 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-26 19:22:23 +0200
commit320352e00477f3b0cfd12efd736bd08c7908fecc (patch)
treef6b884014f0297576c6213cb6c5c24c0bfc60cd5
parentc340d1851242e691e7e0baad18a662d6c7a62bc8 (diff)
give the APT::Cache::Generate option her effect back
-rw-r--r--cmdline/apt-cache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index a5b3141d7..c790559e7 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1871,7 +1871,9 @@ int main(int argc,const char *argv[]) /*{{{*/
if (!isatty(STDOUT_FILENO) && _config->FindI("quiet", -1) == -1)
_config->Set("quiet","1");
-// if (_config->FindB("APT::Cache::Generate",true) == false)
+ if (_config->Exists("APT::Cache::Generate") == true)
+ _config->Set("pkgCacheFile::Generate", _config->FindB("APT::Cache::Generate", true));
+
if (CmdL.DispatchArg(CmdsA,false) == false && _error->PendingError() == false)
CmdL.DispatchArg(CmdsB);