From fd98e9c7189a18b27935f92449dea58962e6cbdd Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Fri, 24 Apr 2015 09:31:28 +0300 Subject: modifications for the previous commit in error message handling forgot to --amend my changes --- src/database.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/database.c') diff --git a/src/database.c b/src/database.c index 0b26bb2..0f0496b 100644 --- a/src/database.c +++ b/src/database.c @@ -2591,6 +2591,8 @@ static int apk_db_unpack_pkg(struct apk_database *db, bs = apk_bstream_from_fd_url(filefd, file); if (IS_ERR_OR_NULL(bs)) { r = PTR_ERR(bs); + if (r == -ENOENT && pkg->filename == NULL) + r = -EAPKSTALEINDEX; goto err_msg; } if (need_copy) { -- cgit v1.2.3-70-g09d2