Commit 6807de43 authored by Timo Teräs's avatar Timo Teräs

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
parent f9b4fb46
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment