summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c
index 44bbc0d..344f35f 100644
--- a/src/index.c
+++ b/src/index.c
@@ -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);
}