#include "opkg_upgrade.h"
#include "opkg_remove.h"
#include "opkg_configure.h"
-#include "libopkg.h"
#include "xsystem.h"
static void
/* If the package has already been visited (by this function), skip it */
for(j = 0; j < visited->len; j++)
if ( ! strcmp(visited->pkgs[j]->name, pkg->name)) {
- opkg_msg(INFO, "pkg %s already visited, skipping.\n", pkg->name);
+ opkg_msg(DEBUG, "pkg %s already visited, skipping.\n", pkg->name);
return 0;
}
count = pkg->pre_depends_count + pkg->depends_count + \
pkg->recommends_count + pkg->suggests_count;
- opkg_msg(INFO, "pkg %s.\n", pkg->name);
+ opkg_msg(DEBUG, "pkg %s.\n", pkg->name);
/* Iterate over all the dependencies of pkg. For each one, find a package
that is either installed or unpacked and satisfies this dependency.
l = 0;
if (dependents != NULL)
while (l < abpkg->provided_by->len && dependents[l] != NULL) {
- opkg_msg(INFO, "Descending on pkg %s.\n",
+ opkg_msg(DEBUG, "Descending on pkg %s.\n",
dependents [l]->name);
/* find whether dependent l is installed or unpacked,
pkg->state_status = SS_INSTALLED;
pkg->parent->state_status = SS_INSTALLED;
pkg->state_flag &= ~SF_PREFER;
+ opkg_state_changed++;
} else {
if (!err)
err = r;
int
opkg_cmd_exec(opkg_cmd_t *cmd, int argc, const char **argv)
{
- int result;
-
- result = (cmd->fun)(argc, argv);
-
- print_error_list();
- free_error_list();
-
- return result;
+ return (cmd->fun)(argc, argv);
}