diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-23 11:35:40 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-23 11:35:40 +0300 |
commit | a388f4bfa6e92a06d95de576aee94f2ae5695cfe (patch) | |
tree | a9c6266888ab79be0c49715efabec769802816fa /src/package.c | |
parent | 90aaa28a95f28206e6bf4ed0d5a798595165cb8c (diff) | |
download | apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.tar.gz apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.tar.bz2 apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.tar.xz apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.zip |
index: more informative error message
when failed to load an existing index.
Diffstat (limited to 'src/package.c')
-rw-r--r-- | src/package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c index 1c9ff3d..1d2e50a 100644 --- a/src/package.c +++ b/src/package.c @@ -723,7 +723,7 @@ int apk_pkg_read(struct apk_database *db, const char *file, if (r < 0 && r != -ECANCELED) goto err; if (ctx.pkg->name == NULL) { - r = -EBADMSG; + r = -ENOMSG; goto err; } if (sctx->action != APK_SIGN_VERIFY) |