summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-04-29 02:59:56 (EDT)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-04-29 02:59:56 (EDT)
commitd09cea362eb6d39f75fc4b2566f2f2ed35e58757 (patch)
tree728ee387c2209816fc91c416c3a1edee4a8290dc /libopkg
parent4fc11f66f297250e52b6bc6b2ce63c2597fd65e8 (diff)
Add a message for the case that no installation candidate can be found.
git-svn-id: http://opkg.googlecode.com/svn/trunk@529 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_install.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 9f1dbac..c8e6dc9 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -1138,8 +1138,10 @@ opkg_install_by_name(const char *pkg_name)
old->version);
new = pkg_hash_fetch_best_installation_candidate_by_name(pkg_name);
- if (new == NULL)
+ if (new == NULL) {
+ opkg_msg(NOTICE, "Unknown package '%s'.\n", pkg_name);
return -1;
+ }
opkg_msg(DEBUG2, "Versions from pkg_hash_fetch:");
if ( old )