From eb2bc4f206faf5b8c67f09f3a92b3dea453e2b87 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 26 Apr 2006 12:40:51 +0200 Subject: * give a useful error message for the database change --- ftparchive/cachedb.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ftparchive/cachedb.cc') 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; -- cgit v1.2.3-70-g09d2