From 7ea0060e3b5c0f4d261cf4291bcd160ec94164c2 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 26 Nov 2009 23:09:44 -0500 Subject: Remove enum opkg_error. The return codes aren't particularly useful and trying to have a useful one for every error scenario would be like extending errno. Good error messages via opkg_message() are far more appropriate. git-svn-id: http://opkg.googlecode.com/svn/trunk@395 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg_hash.c') diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c index e02e1f2..3259eef 100644 --- a/libopkg/pkg_hash.c +++ b/libopkg/pkg_hash.c @@ -256,7 +256,7 @@ pkg_hash_fetch_best_installation_candidate(opkg_conf_t *conf, { opkg_message (conf, OPKG_ERROR, "Packages were found, but none compatible with the architectures configured\n"); if (err) - *err = OPKG_PKG_HAS_NO_AVAILABLE_ARCH; + *err = -1; } } } -- cgit v0.9.1