summaryrefslogtreecommitdiff
path: root/ftparchive/cachedb.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-04-26 12:57:16 +0200
committerMichael Vogt <egon@bottom>2006-04-26 12:57:16 +0200
commit6e2d0d877c2c94a59d6cf42a855bcd313e77cbc4 (patch)
tree90e072f0ccd8397390d7c0c1c199ea628b2deab2 /ftparchive/cachedb.cc
parent2268ad65d9f36433f2b3d46e05e8782285641ee3 (diff)
parenteb2bc4f206faf5b8c67f09f3a92b3dea453e2b87 (diff)
* merge useful error message for upgrade from apt-ftparchive
Diffstat (limited to 'ftparchive/cachedb.cc')
-rw-r--r--ftparchive/cachedb.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc
index 427fea7e4..0e6078642 100644
--- a/ftparchive/cachedb.cc
+++ b/ftparchive/cachedb.cc
@@ -69,6 +69,12 @@ bool CacheDB::ReadyDB(string DB)
(ReadOnly?DB_RDONLY:DB_CREATE), 0644);
}
+ // the database format has changed from DB_HASH to DB_BTREE in
+ // apt 0.6.44
+ if (err == EINVAL)
+ {
+ _error->Error(_("DB format is invalid. If you upgraded from a older version of apt, please remove and re-create the database."));
+ }
if (err)
{
Dbp = 0;