]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgcachegen.cc
apt-pkg/contrib/sha2_internal.h: remove extern "C" to avoid symbol clash with libssl
[apt.git] / apt-pkg / pkgcachegen.cc
index 24e95f2f287607361f3655803c7912fbfed3466d..2b6d294fbf79aab1fecf56ab274556e09a378410 100644 (file)
@@ -106,6 +106,9 @@ void pkgCacheGenerator::ReMap(void const * const oldMap, void const * const newM
    if (oldMap == newMap)
       return;
 
+   if (_config->FindB("Debug::pkgCacheGen", false))
+      std::clog << "Remaping from " << oldMap << " to " << newMap << std::endl;
+
    Cache.ReMap(false);
 
    CurrentFile += (pkgCache::PackageFile*) newMap - (pkgCache::PackageFile*) oldMap;
@@ -685,7 +688,7 @@ bool pkgCacheGenerator::NewDepends(pkgCache::PkgIterator &Pkg,
                                   string const &Version,
                                   unsigned int const &Op,
                                   unsigned int const &Type,
-                                  map_ptrloc *OldDepLast)
+                                  map_ptrloc* &OldDepLast)
 {
    void const * const oldMap = Map.Data();
    // Get a structure