projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a message for the case that no installation candidate can be found.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_install.c
diff --git
a/libopkg/opkg_install.c
b/libopkg/opkg_install.c
index 9f1dbacd3c8ae4e58ecf4dd9e529c34e97a52ab2..c8e6dc9126654bc7c638a7fe7f7a318d6471dafd 100644
(file)
--- 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);
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;
return -1;
+ }
opkg_msg(DEBUG2, "Versions from pkg_hash_fetch:");
if ( old )
opkg_msg(DEBUG2, "Versions from pkg_hash_fetch:");
if ( old )