summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-04-24 09:31:28 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-04-24 09:32:22 +0300
commitfd98e9c7189a18b27935f92449dea58962e6cbdd (patch)
treef89aa4f26d9dd2b2015a3b966b9229c1ded10b85 /src/database.c
parent74dc8e232f1637c8fc1eaed4e5c1cd7ac946f049 (diff)
downloadapk-tools-fd98e9c7189a18b27935f92449dea58962e6cbdd.tar.gz
apk-tools-fd98e9c7189a18b27935f92449dea58962e6cbdd.tar.bz2
apk-tools-fd98e9c7189a18b27935f92449dea58962e6cbdd.tar.xz
apk-tools-fd98e9c7189a18b27935f92449dea58962e6cbdd.zip
modifications for the previous commit in error message handling
forgot to --amend my changes
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 2 insertions, 0 deletions
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) {