diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-26 23:09:44 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-26 23:09:44 (EST) |
commit | 7ea0060e3b5c0f4d261cf4291bcd160ec94164c2 (patch) | |
tree | 303fef8983cf9cc707d34c231a6eedbb703d5ad9 /libopkg/opkg_cmd.c | |
parent | 65744fa1522751906c5cfb93e67137fc98103e91 (diff) |
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
Diffstat (limited to 'libopkg/opkg_cmd.c')
-rw-r--r-- | libopkg/opkg_cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index c9489d3..82a623e 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -546,10 +546,8 @@ static int opkg_install_cmd(opkg_conf_t *conf, int argc, char **argv) for (i=0; i < argc; i++) { arg = argv[i]; err = opkg_install_by_name(conf, arg); - if (err == OPKG_PKG_HAS_NO_CANDIDATE) { - opkg_message(conf, OPKG_ERROR, - "Cannot find package %s.\n", - arg); + if (err) { + opkg_message(conf, OPKG_ERROR, "Cannot find package %s.\n", arg); } } |