From 11c434b8019682a3e6f0f683fd14a6b69151956a Mon Sep 17 00:00:00 2001 From: graham.gower Date: Tue, 10 Nov 2009 21:10:49 -0500 Subject: Don't try to rerun control scripts, problems caused by circular dependencies. Symptoms of this problem are seeing the following when installing a package: opkg: (null): Bad address opkg: (null): Bad address git-svn-id: http://opkg.googlecode.com/svn/trunk@281 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 4a1ff9a..15e15c7 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -910,6 +910,9 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade) if (conf->nodeps == 0) { err = satisfy_dependencies_for(conf, pkg); if (err) { return OPKG_INSTALL_ERR_DEPENDENCIES; } + if (pkg->state_status == SS_UNPACKED) + /* Circular dependency has installed it for us. */ + return 0; } replacees = pkg_vec_alloc(); -- cgit v0.9.1