diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-29 15:59:41 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-29 16:29:05 +0100 |
commit | f161603953f92cc3e778439d7149e5b852f65277 (patch) | |
tree | 3762e10147ae26ad56a98483a4bf9a5b98a2dd27 /apt-pkg/pkgcachegen.h | |
parent | 67c90775b650efe89d7d784cf913526cc3b63d07 (diff) |
pkgCacheGenerator: Allow passing down an already created cache
If we already have opened a cache, there is no point in having
to open it again.
Diffstat (limited to 'apt-pkg/pkgcachegen.h')
-rw-r--r-- | apt-pkg/pkgcachegen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h index 21a4a6a09..ac5947c6a 100644 --- a/apt-pkg/pkgcachegen.h +++ b/apt-pkg/pkgcachegen.h @@ -113,6 +113,8 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/ APT_PUBLIC static bool MakeStatusCache(pkgSourceList &List,OpProgress *Progress, MMap **OutMap = 0,bool AllowMem = false); + APT_HIDDEN static bool MakeStatusCache(pkgSourceList &List,OpProgress *Progress, + MMap **OutMap,pkgCache **OutCache, bool AllowMem = false); APT_PUBLIC static bool MakeOnlyStatusCache(OpProgress *Progress,DynamicMMap **OutMap); void ReMap(void const * const oldMap, void const * const newMap); |