From 6807de43da1de55289b6655d682415eb251cab88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 27 May 2016 12:21:14 +0300 Subject: [PATCH] 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 --- src/index.c | 4 ++-- 1 file 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); }