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);
}
}
for (i = 0; i < argc; i++) {
arg = argv[i];
- pkg = pkg_hash_fetch_best_installation_candidate_by_name(conf, arg, &err);
+ pkg = pkg_hash_fetch_best_installation_candidate_by_name(conf, arg);
if (pkg == NULL) {
opkg_message(conf, OPKG_ERROR,
"Cannot find package %s.\n"
char *old_v, *new_v;
for (node = active_list_next(head, head); node;node = active_list_next(head,node)) {
_old_pkg = list_entry(node, pkg_t, list);
- _new_pkg = pkg_hash_fetch_best_installation_candidate_by_name(conf, _old_pkg->name, NULL);
+ _new_pkg = pkg_hash_fetch_best_installation_candidate_by_name(conf, _old_pkg->name);
+ if (_new_pkg == NULL)
+ continue;
old_v = pkg_version_str_alloc(_old_pkg);
new_v = pkg_version_str_alloc(_new_pkg);
printf("%s - %s - %s\n", _old_pkg->name, old_v, new_v);
conffile_t *cf = (conffile_t *)iter->data;
int modified = conffile_has_been_modified(conf, cf);
if (cf->value)
- opkg_message(conf, OPKG_NOTICE,
+ opkg_message(conf, OPKG_INFO,
"conffile=%s md5sum=%s modified=%d\n",
cf->name, cf->value, modified);
}