diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-04-26 12:40:51 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-04-26 12:40:51 +0200 |
commit | eb2bc4f206faf5b8c67f09f3a92b3dea453e2b87 (patch) | |
tree | 4303c6c7382e24e17180f78a181a229fda926a17 /ftparchive | |
parent | cde41ae88e2742b905991e9e2ebbb535e61eb6d1 (diff) | |
download | apt-eb2bc4f206faf5b8c67f09f3a92b3dea453e2b87.tar.gz |
* give a useful error message for the database change
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/cachedb.cc | 6 |
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; |