]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-extracttemplates.cc
accept package versions in the unmet command
[apt.git] / cmdline / apt-extracttemplates.cc
index de22386b9fbefc696678c084d2a779846feae874..07bc0c25d053d6a17453d67e3d84d87078211bf5 100644 (file)
@@ -296,8 +296,7 @@ bool Go(CommandLine &CmdL)
        MMap *Map = 0;
        pkgSourceList List;
        List.ReadMainList();
        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);
        if (Map == 0)
           return false;
        DebFile::Cache = new pkgCache(Map);
@@ -348,8 +347,7 @@ bool Go(CommandLine &CmdL)
        return !_error->PendingError();
 }
                                                                        /*}}}*/
        return !_error->PendingError();
 }
                                                                        /*}}}*/
-
-int main(int argc, const char **argv)
+int main(int argc, const char **argv)                                  /*{{{*/
 {
        CommandLine::Args Args[] = {
                {'h',"help","help",0},
 {
        CommandLine::Args Args[] = {
                {'h',"help","help",0},
@@ -391,3 +389,4 @@ int main(int argc, const char **argv)
        
        return 0;
 }
        
        return 0;
 }
+                                                                       /*}}}*/