X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/18a14a834e4068917d97467a3a52f17ed6055da3..52b47296f61ec3ca1075bbfb44982f5caa541e7c:/cmdline/apt-extracttemplates.cc diff --git a/cmdline/apt-extracttemplates.cc b/cmdline/apt-extracttemplates.cc index de22386b9..d5c1a3208 100644 --- a/cmdline/apt-extracttemplates.cc +++ b/cmdline/apt-extracttemplates.cc @@ -13,6 +13,8 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ +#include + #include #include #include @@ -28,7 +30,8 @@ #include #include #include - +#include + #include #include #include @@ -36,7 +39,6 @@ #include #include -#include #include #include "apt-extracttemplates.h" /*}}}*/ @@ -296,8 +298,7 @@ bool Go(CommandLine &CmdL) MMap *Map = 0; pkgSourceList List; List.ReadMainList(); - OpProgress Prog; - pkgMakeStatusCache(List,Prog,&Map,true); + pkgCacheGenerator::MakeStatusCache(List,NULL,&Map,true); if (Map == 0) return false; DebFile::Cache = new pkgCache(Map); @@ -348,8 +349,7 @@ bool Go(CommandLine &CmdL) return !_error->PendingError(); } /*}}}*/ - -int main(int argc, const char **argv) +int main(int argc, const char **argv) /*{{{*/ { CommandLine::Args Args[] = { {'h',"help","help",0}, @@ -391,3 +391,4 @@ int main(int argc, const char **argv) return 0; } + /*}}}*/