Explorar o código

libdpkg: Reset pkg db when shutting down the modstat db

Guillem Jover %!s(int64=10) %!d(string=hai) anos
pai
achega
3404fd24ef
Modificáronse 3 ficheiros con 5 adicións e 1 borrados
  1. 2 0
      debian/changelog
  2. 1 1
      dselect/main.cc
  3. 2 0
      lib/dpkg/dbmodify.c

+ 2 - 0
debian/changelog

@@ -19,6 +19,8 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
     Closes: #787980
   * Switch from non-freeing malloc to m_malloc on statdb slurping.
   * Switch from non-freeing malloc to m_malloc for invoke hooks.
+  * Always reset the package in-core database when shutting down the package
+    database journal.
   * Perl modules:
     - Obsolete Source-Version substvar in Dpkg::Substvars by emitting errors.
     - Rework keyring hooks in Dpkg::Vendor. Deprecate the keyrings hook, and

+ 1 - 1
dselect/main.cc

@@ -387,7 +387,7 @@ urqresult urq_list(void) {
   delete l;
 
   modstatdb_shutdown();
-  pkg_db_reset();
+
   return urqr_normal;
 }
 

+ 2 - 0
lib/dpkg/dbmodify.c

@@ -341,6 +341,8 @@ void modstatdb_shutdown(void) {
     break;
   }
 
+  pkg_db_reset();
+
   modstatdb_done();
 }