From 93f0b3524c1263b99a1a4bf718c27e6ad7b6aea8 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 22 Jul 2009 14:56:27 +0300 Subject: various: more informative error messages --- src/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.c') diff --git a/src/index.c b/src/index.c index 608dea861d..cd0c0b5657 100644 --- a/src/index.c +++ b/src/index.c @@ -155,7 +155,7 @@ static int index_main(void *ctx, int argc, char **argv) if (!found) { struct apk_sign_ctx sctx; apk_sign_ctx_init(&sctx, ictx->method, NULL); - if (apk_pkg_read(&db, argv[i], &sctx) != NULL) + if (apk_pkg_read(&db, argv[i], &sctx, NULL) == 0) newpkgs++; apk_sign_ctx_free(&sctx); } -- cgit v1.2.3