]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt.cc
fix crash in order writing in pkgDPkgPM::WriteApportReport()
[apt.git] / cmdline / apt.cc
index b69aeef2d0a0b6d26e6b17d13e227a2c0d438861..2cfdf8e8e4e046da431f911bc14fb1ee3567cddf 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, const char *argv[])                                        /*{{{*/
 {
    CommandLine::Dispatch Cmds[] = {
                                    // query
 {
    CommandLine::Dispatch Cmds[] = {
                                    // query
-                                   {"list",&List},
+                                   {"list",&DoList},
                                    {"search", &FullTextSearch},
                                    {"show", &APT::Cmd::ShowPackage},
 
                                    {"search", &FullTextSearch},
                                    {"show", &APT::Cmd::ShowPackage},
 
@@ -96,6 +96,10 @@ int main(int argc, const char *argv[])                                       /*{{{*/
 
    std::vector<CommandLine::Args> Args = getCommandArgs("apt", CommandLine::GetCommand(Cmds, argc, argv));
 
 
    std::vector<CommandLine::Args> Args = getCommandArgs("apt", CommandLine::GetCommand(Cmds, argc, argv));
 
+   // Init the signals
+   InitSignals();
+
+   // Init the output
    InitOutput();
 
    // Set up gettext support
    InitOutput();
 
    // Set up gettext support
@@ -109,9 +113,10 @@ int main(int argc, const char *argv[])                                     /*{{{*/
     }
 
     // some different defaults
     }
 
     // some different defaults
-   _config->CndSet("DPkgPM::Progress-Fancy", "1");
+   _config->CndSet("DPkg::Progress-Fancy", "1");
    _config->CndSet("Apt::Color", "1");
    _config->CndSet("APT::Get::Upgrade-Allow-New", true);
    _config->CndSet("Apt::Color", "1");
    _config->CndSet("APT::Get::Upgrade-Allow-New", true);
+   _config->CndSet("APT::Cmd::Show-Update-Stats", true);
 
    // Parse the command line and initialize the package library
    CommandLine CmdL(Args.data(), _config);
 
    // Parse the command line and initialize the package library
    CommandLine CmdL(Args.data(), _config);