summaryrefslogtreecommitdiff
path: root/apt-private/private-list.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-04-10 09:39:35 +0200
committerMichael Vogt <mvo@debian.org>2014-04-10 09:39:35 +0200
commita1a253e8be978998b66af62240a25864db2cc694 (patch)
tree485efb6b77d063b08045153478e704e804242b7e /apt-private/private-list.cc
parent4c3722e3a74f183b331b0a782017ae442ca143fb (diff)
parent5ff678f7a22bb3206f5e46fcbdd00e56cb44b99e (diff)
Merge branch 'debian/sid' into ubuntu/master
Diffstat (limited to 'apt-private/private-list.cc')
-rw-r--r--apt-private/private-list.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc
index 7664ca134..b053cbcbe 100644
--- a/apt-private/private-list.cc
+++ b/apt-private/private-list.cc
@@ -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};