Browse Source

* give a useful error message for the database change

tags/debian/0.7.21
Michael Vogt 15 years ago
parent
commit
eb2bc4f206
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      ftparchive/cachedb.cc

+ 6
- 0
ftparchive/cachedb.cc View File

@@ -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;


Loading…
Cancel
Save