summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
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 )