summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-26 12:40:51 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-26 12:40:51 +0200
commiteb2bc4f206faf5b8c67f09f3a92b3dea453e2b87 (patch)
tree4303c6c7382e24e17180f78a181a229fda926a17 /ftparchive
parentcde41ae88e2742b905991e9e2ebbb535e61eb6d1 (diff)
* give a useful error message for the database change
Diffstat (limited to 'ftparchive')
-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;