Explorar el Código

* ftparchive/cachedb.cc:
- when apt-ftparchive clean is used, compact the database
at the end (thanks to cprov)

Michael Vogt hace 17 años
padre
commit
1e2acb1a23
Se han modificado 2 ficheros con 9 adiciones y 0 borrados
  1. 8 0
      debian/changelog
  2. 1 0
      ftparchive/cachedb.cc

+ 8 - 0
debian/changelog

@@ -1,3 +1,11 @@
+apt (0.7.20.2ubuntu4) jaunty; urgency=low
+
+  * ftparchive/cachedb.cc:
+    - when apt-ftparchive clean is used, compact the database
+      at the end (thanks to cprov)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 26 Mar 2009 13:43:59 +0100
+
 apt (0.7.20.2ubuntu3) jaunty; urgency=low
 
   * methods/mirror.cc:

+ 1 - 0
ftparchive/cachedb.cc

@@ -463,6 +463,7 @@ bool CacheDB::Clean()
       
       Cursor->c_del(Cursor,0);
    }
+   Dbp->compact(Dbp, NULL, NULL, NULL, NULL, DB_FREE_SPACE, NULL);
 
    return true;
 }