]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-extracttemplates.cc
report progress for triggered actions
[apt.git] / cmdline / apt-extracttemplates.cc
index d1345400bae098ec564ff7ab39cfb79f3a81ac25..a4468b9893eb7016ca7d7fa637a6e7d4b7fd4c70 100644 (file)
@@ -215,7 +215,7 @@ bool DebFile::ParseInfo()
        return true;
 }
                                                                        /*}}}*/
        return true;
 }
                                                                        /*}}}*/
-bool ShowHelp(CommandLine &)                                           /*{{{*/
+static bool ShowHelp(CommandLine &)                                    /*{{{*/
 {
        cout <<
                _("Usage: apt-extracttemplates file1 [file2 ...]\n"
 {
        cout <<
                _("Usage: apt-extracttemplates file1 [file2 ...]\n"
@@ -330,7 +330,7 @@ static bool Go(CommandLine &CmdL)
        return !_error->PendingError();
 }
                                                                        /*}}}*/
        return !_error->PendingError();
 }
                                                                        /*}}}*/
-std::vector<aptDispatchWithHelp> GetCommands()                         /*{{{*/
+static std::vector<aptDispatchWithHelp> GetCommands()                  /*{{{*/
 {
    return {
        {nullptr, nullptr, nullptr}
 {
    return {
        {nullptr, nullptr, nullptr}
@@ -339,8 +339,6 @@ std::vector<aptDispatchWithHelp> GetCommands()                              /*{{{*/
                                                                        /*}}}*/
 int main(int argc, const char **argv)                                  /*{{{*/
 {
                                                                        /*}}}*/
 int main(int argc, const char **argv)                                  /*{{{*/
 {
-       InitLocale();
-
        CommandLine CmdL;
        auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_EXTRACTTEMPLATES, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);
 
        CommandLine CmdL;
        auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_EXTRACTTEMPLATES, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);