]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-list.cc
use correct compression extension when loading the size of the size into the fetcher
[apt.git] / apt-private / private-list.cc
index 7664ca1348cd369f91833e83c5a1de8e81e9ded3..b053cbcbe2bfb2d120f86d3781b72fe31a760236 100644 (file)
@@ -99,14 +99,13 @@ static void ListAllVersions(pkgCacheFile &CacheFile, pkgRecords &records,/*{{{*/
                                                                        /*}}}*/
 // list - list package based on criteria                               /*{{{*/
 // ---------------------------------------------------------------------
-bool List(CommandLine &Cmd)
+bool DoList(CommandLine &Cmd)
 {
    pkgCacheFile CacheFile;
    pkgCache *Cache = CacheFile.GetPkgCache();
-   pkgRecords records(CacheFile);
-
    if (unlikely(Cache == NULL))
       return false;
+   pkgRecords records(CacheFile);
 
    const char **patterns;
    const char *all_pattern[] = { "*", NULL};