summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-05-27 12:21:14 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-05-27 12:21:14 +0300
commit6807de43da1de55289b6655d682415eb251cab88 (patch)
treeb552e64c7bcdf380251fc15b7428a1f13de4d559 /src
parentf9b4fb469b3df10c3cdfb0740225dd430bf90565 (diff)
downloadapk-tools-6807de43da1de55289b6655d682415eb251cab88.tar.gz
apk-tools-6807de43da1de55289b6655d682415eb251cab88.tar.bz2
apk-tools-6807de43da1de55289b6655d682415eb251cab88.tar.xz
apk-tools-6807de43da1de55289b6655d682415eb251cab88.zip
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
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);
}