From f161603953f92cc3e778439d7149e5b852f65277 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 29 Dec 2015 15:59:41 +0100 Subject: 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. --- apt-pkg/pkgcachegen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg/pkgcachegen.h') 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); -- cgit v1.2.3