* ftparchive/cachedb.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 26 Mar 2009 12:44:09 +0000 (13:44 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 26 Mar 2009 12:44:09 +0000 (13:44 +0100)
  - when apt-ftparchive clean is used, compact the database
    at the end (thanks to cprov)

debian/changelog
ftparchive/cachedb.cc

index 5a76438..d1f8857 100644 (file)
@@ -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:
index 8de3a0b..ff9a92d 100644 (file)
@@ -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;
 }