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 anywaycute-signatures
parent
f9b4fb469b
commit
6807de43da
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue