From 0a7991f70dcfe9f8e05f6a4a4a59af21be878915 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 22 Jul 2009 14:24:19 +0300 Subject: various: misc fixes - error codes for verification failure types - fix some fdb corruption on file migration - combine some dependency parsing code - fix versioned dependencies --- src/cache.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/cache.c') diff --git a/src/cache.c b/src/cache.c index 7b5b7f1..ac2281e 100644 --- a/src/cache.c +++ b/src/cache.c @@ -9,9 +9,10 @@ * by the Free Software Foundation. See http://www.gnu.org/ for details. */ +#include +#include #include #include -#include #include "apk_defines.h" #include "apk_applet.h" @@ -140,7 +141,7 @@ static int cache_main(void *ctx, int argc, char **argv) int r; if (argc != 1) - return -100; + return -EINVAL; if (strcmp(argv[0], "sync") == 0) actions = CACHE_CLEAN | CACHE_DOWNLOAD; @@ -149,7 +150,7 @@ static int cache_main(void *ctx, int argc, char **argv) else if (strcmp(argv[0], "download") == 0) actions = CACHE_DOWNLOAD; else - return -100; + return -EINVAL; r = apk_db_open(&db, apk_root, APK_OPENF_NO_SCRIPTS | APK_OPENF_NO_INSTALLED); -- cgit v1.2.3