index: don't return error if --index does not exists

it's only used to speed up things, and having it non-existant
is not a fatal error - all included things in index will be
passed in command line anyway
cute-signatures
Timo Teräs 2016-05-27 12:21:14 +03:00
parent f9b4fb469b
commit 6807de43da
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ static int index_read_file(struct apk_database *db, struct index_ctx *ictx)
if (ictx->index == NULL)
return 0;
if (apk_fileinfo_get(AT_FDCWD, ictx->index, APK_CHECKSUM_NONE, &fi) < 0)
return -EIO;
ictx->index_mtime = fi.mtime;
return 0;
ictx->index_mtime = fi.mtime;
return apk_db_index_read_file(db, ictx->index, 0);
}